[TYPO3-core] Error at renderMode tree
arno dudek
webmaster at adgrafik.at
Mon May 9 20:04:26 CEST 2011
Hi!
Using v4.5.0 / v4.5.2
I got an error when using the renderMode tree in TCA:
Core: Error handler (BE): PHP Warning: Missing argument 2 for
extDirect_DataProvider_BackendUserSettings::addToList() in
/Volumes/Jobs/adgrafik/000000-TYPO3
Develop/typo3_4.5.2.ip.dev/t3lib/extjs/dataprovider/class.extdirect_dataprovider_beusersettings.php
line 107
Found the line where the problem is:
File class.t3lib_tceforms_tree.php (3 matches) Line 176
expandnode: function(node) {
top.TYPO3.BackendUserSettings.ExtDirect.addToList("tcaTrees." +
this.ucId, node.attributes.uid);
}
TCA-config:
'type' => 'select',
'size' => 3,
'autoSizeMax' => 15,
'minitems' => 0,
'maxitems' => 99,
'foreign_table' => 'tx_ext_domain_model_category',
'foreign_table_where' => 'AND
(tx_ext_domain_model_category.sys_language_uid = 0 OR
tx_ext_domain_model_category.l18n_parent = 0) ORDER BY
tx_ext_domain_model_category.sorting',
'MM' => 'tx_ext_category_layer_mm',
'MM_opposite_field' => 'layers',
'renderMode' => 'tree',
'treeConfig' => array(
'parentField' => 'parent_category',
'appearance' => array(
'expandAll' => true,
'showHeader' => true,
),
),
Tracing the variable node.attributes with firebug:
Object { iconCls="t3-icon t3-icon-tcareco..._model_category-default",
text="c-test", mehr...}
Object { iconCls="t3-icon t3-icon-tcareco..._model_category-default",
text="Category", mehr...}
Object { text="TYPO3 StandardTree", id="root", mehr...}
The first line is the category, the second the root. The last one have
no uid set.
Hope this will help.
lg arno
More information about the TYPO3-team-core
mailing list