[TYPO3-dev] TCE Problem with select and maxitems
R. van Twisk
typo3 at rvt.dds.nl
Tue Dec 19 23:35:47 CET 2006
Jeff Segars wrote:
> 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
I have seen the same on ch_treeview, it seems a bug indeed...
Ries
--
Ries van Twisk
Freelance Typo3 Developer
=== Private:
email: ries at vantwisk.nl
web: http://www.rvantwisk.nl/freelance-typo3.html
skype: callto://r.vantwisk
More information about the TYPO3-dev
mailing list