Project

General

Profile

Actions

Bug #76888

closed

Story #69617: FormEngine bugs

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

Added by Steffen Müller almost 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2016-06-30
Due date:
% Done:

100%

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

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #72510: Markers (e.g. ###REC_FIELD_sys_language_uid###) not replaced in flexforms foreign_table_where tagsClosed2016-01-03

Actions
Actions #1

Updated by Gerrit Code Review almost 8 years ago

  • Status changed from New 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/48749

Actions #2

Updated by Gerrit Code Review almost 8 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/48749

Actions #3

Updated by Christian Kuhn almost 8 years ago

  • Parent task set to #69617
Actions #4

Updated by Gerrit Code Review almost 8 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48749

Actions #5

Updated by Gerrit Code Review almost 8 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48830

Actions #6

Updated by Steffen Müller almost 8 years ago

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

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF