Issue Bug Closed

#76888###CURRENT_PID### in foreign_table_where of Flexforms always result in 0

Steffen Müller 06/30/16, 12:49 updated 10/02/18, 11:08

Description

Given a content element with a flexform field having the following configuration:

    <TCEforms>
      <label>Cars</label>
      <config>
        <type>select</type>
        <renderType>selectMultipleSideBySide</renderType>
        <foreign_table>tx_vehicles_domain_model_car</foreign_table>
        <foreign_table_where>AND pages.uid=###CURRENT_PID###</foreign_table_where>
        <size>12</size>
        </config>
    </TCEforms>

And 3 records tx_vehicles_domain_model_car have been added to current page
When editing the content element
And the form field from flexform is rendered
Then no records are shown at all
But I expect 3 records to be shown in the form field

When I debug the SQL query, I always get pages.uid=0

Using TYPO3 7.6.9.

The same config worked with 6.2.

Reviews 2