Bug #81022
closedSITEROOT marker is replaced with 0 when used in flexform
100%
Description
The problem is that the TcaSelectItems has no dependency to the DatabasePageRootline in case of 'flexFormSegment'.
So the ###SITEROOT### marker is always 0 (AbstractItemProvider->processForeignTableClause) because the used $result[‘rootline’] array is always empty.
I provide a demo Extension to reproduce the bug.
The usecase is to show the editor all product records of the current site.
Product records are stored on the product detail page.
Files
Updated by Georg Ringer over 4 years ago
- Status changed from New to Accepted
simple example to test is also
<settings.example> <TCEforms> <label></label> <config> <type>select</type> <renderType>selectSingle</renderType> <foreign_table>pages</foreign_table> <foreign_table_where>pages.pid = ###SITEROOT###</foreign_table_where> <allowed>pages</allowed> <size>3</size> <minitems>0</minitems> <maxitems>99</maxitems> </config> </TCEforms> </settings.example>
which can be added to any flexform like felogin or an 3rd party extension
Updated by Gerrit Code Review over 4 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63594
Updated by Gerrit Code Review over 4 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63594
Updated by Gerrit Code Review over 4 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63581
Updated by Georg Ringer over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ab55a5552c779278697662a04722a6f52498ca1d.