[TYPO3-core] RFC: Bug 4226: New content elements wizard removes CE from array if tt_content_defValues property is zero

Franz Holzinger franz at fholzinger.com
Thu May 31 07:43:51 CEST 2007


Hello Oliver,

> And furthermore imagine a page TSconfig like this:
> TCEFORM.tt_content.CType.removeItems = bullets,uploads,multimedia 
> 
> Since the user extension has a property "tx_myext_field" which is set to
> "bullets" and the regular content element of tt_content with the type
> "bullets" should be removed, the current situation in the Core would
> remove both. 
> 
> Solution:
> Make sure that only the property 'CType' is checked for removal of
> wizard items and not every property in 'tt_content_defValues'.

This seems to be necessary, because of the line:
$removeItems = 
t3lib_div::trimExplode(',',$TCEFORM_TSconfig['CType']['removeItems'],1); 

+1 

 - Franz


More information about the TYPO3-team-core mailing list