[TYPO3-core] RFC: #8362: Duplicate entry for [tstamp] and [crdate] in Web->List module for single table in selector-box

Steffen Kamper steffen at sk-typo3.de
Wed May 21 10:39:58 CEST 2008


Hi Ernesto,

"Ernesto Baschny [cron IT]" <ernst at cron-it.de> schrieb im Newsbeitrag 
news:mailman.1.1211302927.18183.typo3-team-core at lists.netfielders.de...
> Steffen Kamper wrote: on 12.05.2008 14:41:
>
>> Type: Bugfix
>>
>> Bugtracker references:
>> http://bugs.typo3.org/view.php?id=8362
>>
>> Branches: 4.2
>>
>> Problem:
>> In selector box which enables setting columns to display there are two 
>> fields duplicated: tstamp and crdate.
>>
>> For better understanding: when you click on [+] in listview of one table 
>> it's the select box to add fields to the list
>>
>> Solution:
>> only add tstamp and crdate if they are not in fields array.
>>
>> I'm not sure if there is a need to add tstamp and crdate if they are not 
>> in fields. In this case these fields are not in the table?
>
> recordList::makeFieldList() is the method that gets a list of fields. It 
> adds those tstamp + crdate from TCA if you are an "admin" or if it is not 
> checking for permissions.
>
i don't see the check for admin there or any check,
the comment says
// Add pseudo "control" fields

> It seems that tstamp + crdate are then again always added in the method 
> you are patching, even if those are not really the real field names for 
> that specific table. So there is also the bug that "tstamp" might not even 
> be the correct name of the tstamp field (as this can be adapted in 
> TCA-ctrl).
>
> So I think the fix should add a way (new parameter?) for makeFieldList to 
> force it to return the correct tstamp + crdate fields also for "regular" 
> users (non admins) so that the method you are patching doesn't need to be 
> explicitly add them again or read them from TCA.
>
> There are some other bugs in that area (like you can select _REF_ which is 
> not shown if you are not in extended mode, _LOCALIZATION_ can be chosen 
> even if not in locazation mode etc), but those could wait for the "new 
> list module" in 4.3. :)
>

I agree that this section is buggy as the control fields doesn't work 
proper.
This will be fixed in 4.3 i think and i don't want to fix this for now.
But selecting the table fields does work.

So having fields duplicated in list looks obviously wrong and i don't see a 
reason why not remove them with the simple patch, we loose nothing. The bug 
was posted by an user and this may irretate users.

vg Steffen 




More information about the TYPO3-team-core mailing list