1 2.. include:: ../../Includes.txt 3 4===================================================================== 5Breaking: #63406 - Respect rootLevel configuration in extbase queries 6===================================================================== 7 8See :issue:`63406` 9 10Description 11=========== 12 13The rootLevel of a table can be configured to 0, 1 or -1 in TCA, to define where records of a table can be found in the system: 14 15* 0: In the page tree only 16* 1: Only on the root page (pid 0) 17* -1: Both, on the root page and in the page tree 18 19Currently only 0 and 1 are respected by the `Typo3DbQueryParser` when building the pageId statement. This means that a rootLevel of -1 20does not get any pageId statement at all and therefore ignores any `storagePid` configuration for extbase plugins. 21 22 23Impact 24====== 25 26Custom records that have a configuration like this `$GLOBALS['TCA']['tx_myext_domain_model_record']['ctrl']['rootLevel'] = -1` and 27are used in extbase plugins might have trouble finding the records if `plugin.tx_myext.persistence.storagePid` is not configured properly. 28 29 30Affected Installations 31====================== 32 33Third party code using `$GLOBALS['TCA']['tx_myext_domain_model_record']['ctrl']['rootLevel'] = -1` with records within the 34page tree and without a proper `storagePid` configuration. 35 36 37Migration 38========= 39 40Set `plugin.tx_myext.persistence.storagePid` to the page ids you want to find records from. 0 does not need to be included as 41it is added to the statement automatically. 42 43 44.. index:: TCA, TypoScript, ext:extbase 45