Project

General

Profile

Actions

Bug #24012

closed

TCA tree and deleted records

Added by Krystian Szymukowicz over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
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)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #24021: Fatal error inside buildRepresentationForNode()ClosedSteffen Ritter2010-11-11

Actions
Actions #1

Updated by Steffen Ritter over 13 years ago

it's a missing param for t3lib_BEfunc::getRecordWSOL()

Actions #2

Updated by Steffen Ritter over 13 years ago

committed to trunk rev. 9659

Actions #3

Updated by Susanne Moog about 13 years ago

  • Target version deleted (4.5.0)
Actions

Also available in: Atom PDF