Actions
Bug #24012
closedTCA tree and deleted records
Start date:
2010-11-10
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
I have following TCA
'category_uid' => array (
'l10n_mode' => 'exclude',
'exclude' => 1,
'label' => 'LLL:EXT:contentsystem/Resources/Private/Languages/Default/locallang_db.xml:tx_contentsystem_category',
'config' => array (
'type' => 'select',
'renderMode' => 'tree',
'treeConfig' => array(
'parentField' => 'parent_id',
'appearance' => array(
'expandAll' => TRUE,
'showHeader' => TRUE,
)
),
'minitems' => 0,
'maxitems' => 15,
'foreign_table' => 'tx_contentsystem_category',
'foreign_table_where' => ' AND tx_contentsystem_category.sys_language_uid = 0 AND tx_contentsystem_category.deleted = 0',
'MM' => 'tx_contentsystem_category_mm',
)
It works very well if there is no deleted records. As soon as I delete any tx_contentsystem_category record I get error:
#1: PHP Catchable Fatal Error: Argument 2 passed to t3lib_iconWorks::mapRecordTypeToSpriteIconClass() must be an array, null given, called in T:\workspace-typo3\projects\projekt_a\trunk\t3lib\tree\tca\class.t3lib_tree_tca_databasetreedataprovider.php on line 241 and defined in T:\workspace-typo3\projects\projekt_a\trunk\t3lib\class.t3lib_iconworks.php line 792
It looks like
$row = t3lib_BEfunc::getRecordWSOL($this->tableName, $basicNode->getId(), '*');
in line 230 of class.t3lib_tree_tca_databasetreedataprovider.php get NULL for deleted records
(issue imported from #M16342)
Actions