#99315PHP Warning: Undefined array key "MM" in .../typo3/sysext/core/Classes/Tree/TableConfiguration/DatabaseTreeDataProvider.php line 511
Description
If I configured in the TCA a tree field with ‘type’ = ‘select’ and ‘renderType’ => ‘selectTree’ I get a PHP Warning: Undefined array key “MM” in …/typo3/sysext/core/Classes/Tree/TableConfiguration/DatabaseTreeDataProvider.php line 511
The tree is not displayed.
Reviews 2
History 47
-
Tee Ohh commented 01/19/23, 15:52
-
Tee Ohh commented 01/19/23, 16:03
Fix:
\typo3\sysext\core\Classes\Tree\TableConfiguration\DatabaseTreeDataProvider.php LINE 511OLD: if ($this->columnConfiguration['MM']) { NEW: if (!empty($this->columnConfiguration['MM'])) {\typo3\sysext\core\Classes\Tree\TableConfiguration\DatabaseTreeDataProvider.php LINE 522
OLD: } elseif ($this->columnConfiguration['foreign_field']) { NEW: } elseif (!empty($this->columnConfiguration['foreign_field'])) { -
Gerrit Code Review pushed patch set 1 for main to change 77560 status
NewUnder Review 01/24/23, 13:33 -
Gerrit Code Review pushed patch set 2 for main to change 77560 01/24/23, 13:56
-
Gerrit Code Review pushed patch set 1 for 11.5 to change 77572 01/24/23, 14:15
-
Benni Mack commented and changed status
Under ReviewResolved done0 %100 % 01/24/23, 14:20Applied in changeset commit:0d39a6a8282d3e8c712f2210635c5202a98f4ddf.
-
Benni Mack changed status
ResolvedClosed 02/08/23, 16:04
This error is also present in Version 11.5.22. Please have a look on it.
Example