[TYPO3-dev] TCE Problem with select and maxitems
Steffen Kamper
steffen at dislabs.de
Wed Dec 20 00:01:52 CET 2006
"Jeff Segars" <jsegars at alumni.rice.edu> schrieb im Newsbeitrag
news:mailman.1.1166564852.12589.typo3-dev at lists.netfielders.de...
> 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
Hi Jeff - of coarse i read this and because of that i'm searching in bt and
anywhere else, I also asked Rupi and still wait for an answer.
TCE seems to render the list wrong, so rupi correct this in code - but - now
you can select 2 Items, and than it crashes ;)
vg Steffen
More information about the TYPO3-dev
mailing list