Project

General

Profile

Actions

Bug #81022

closed

SITEROOT marker is replaced with 0 when used in flexform

Added by Sascha Nowak almost 7 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Start date:
2017-04-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

nxflexformbug.tar.gz (9.96 KB) nxflexformbug.tar.gz Demo extension to reproduce the bug Sascha Nowak, 2017-04-26 11:43
Actions #1

Updated by Georg Ringer about 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

Actions #2

Updated by Gerrit Code Review about 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

Actions #3

Updated by Gerrit Code Review about 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

Actions #4

Updated by Gerrit Code Review about 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

Actions #5

Updated by Georg Ringer about 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack about 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF