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

Oliver Hader oh at inpublica.de
Sat May 26 13:04:18 CEST 2007


Hi Ingo,

Ingo Renner schrieb:
> Am 19.05.2007 um 10:39 schrieb Oliver Hader:
> Hi Olli,
> 
>> REMINDER RFC #4226
> 
> I wasn't able to reproduce this, can you give a step-by-step explanation
> how to reproduce it?

First of all, I'd like to say sorry, because I gave a wrong description
of the issue and mixed things. It is not about the property being set to
zero. The correct scenario is described in the following.

Problem:
Imagine you have an extension that extends tt_content by servel fields.
Furthermore there is a wizard item which should be shown on creating a
new content element - this is defined by e.g. the following:
						$wizardItems['plugins_tx_myext_pi1'] = array(
  'icon' => t3lib_extMgm::extRelPath('my_ext').'pi1/ce_wiz.gif',
  'title' => $LANG->getLLL('pi1_title',$LL),
  'description' => $LANG->getLLL('pi1_plus_wiz_description',$LL),
  'params' => '&defVals[tt_content][CType]=list' .
              '&defVals[tt_content][list_type]=my_ext' .
              '&defVals[tt_content][tx_myext_field]=bullets'
);

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'.


olly
-- 
Oliver Hader
http://inpublica.de/


More information about the TYPO3-team-core mailing list