[TYPO3-mvc] Fluid: form.select view helper and empty default item

Henrik Møller Rasmussen info at hmrdesign.dk
Tue Apr 20 09:44:46 CEST 2010


On 20/04/10 09.16, my.maylz at web.de wrote:
> Hi,
>
> i've had a similar Problem - when merging the resulting array of the the
> "findAll" in the repos with the empty option the resulting array was
> reindexed so that the category objects didn't have the right uids
> anymore...
>
> i solved this by putting the empty option inside the repos function
>

Hmm - still no luck.

The repo now has this method:

public function findAllWithEmptyCabinet() {
	return array_merge(array(0=>'---'),$this->findAll());
}

It renders the select box correct with the --- option, but it will not 
save it when submitting with the --- chosen. It saves with all the other 
options :-(

- Henrik


More information about the TYPO3-project-typo3v4mvc mailing list