[TYPO3-dev] TCE Problem with select and maxitems
Jeff Segars
jsegars at alumni.rice.edu
Tue Dec 19 22:47:31 CET 2006
Steffen Kamper wrote:
> i'm using a select (with a treeview like in tt_news) for selecting 1 entry.
> When i use
>
> 'minitems' => 0,
> 'maxitems' => 1,
>
> the select is rendered with 2 lines, first selected item starts at line 2,
> and i'm able to select 2 Items
>
> when i change it to
> 'minitems' => 0,
> 'maxitems' => 2,
>
> the select is rendered with 1 line (as i need), but i'm able to select 2
> Items
>
> Is this a known bug ? I didn't found something in BT.
> What to do ?
Hey Steffen,
Around line 110 of class.tx_ttnews_treeview.php is the following code...
> // it seems TCE has a bug and do not work correctly with '1'
> $config['maxitems'] = ($config['maxitems']==2) ? 1 : $config['maxitems'];
Not sure if its anywhere on the bugtracker, but it does at least explain
the behavior you're seeing :)
Thanks,
Jeff
More information about the TYPO3-dev
mailing list