Issue Bug New Orphaned

#100351ElementBrowserRecordlist::isRowListingConditionFulfilled does not work with flexforms

Nikolas Hagelstein 03/29/23, 15:48 updated 07/31/24, 13:46

Description

*Story*
The element browser should respect the filter property of group fields.
This works for regular TCA group field definitions but not for group fields comming from a flexform.
This missbehavior is caused by function isRowListingConditionFulfilled fetching the field configuration from from the relating table and field which in case of a flexform is always “tt_conntent”/pi_flexfrom insteand of the actual configuration within the flexform.

Therefor filter userfunc are not executed for groupfields configured within flexforms.

*Reproduce*
Add a flexform to a plugin.
E.g.:

<config>
    <type>group</type>
    <internal_type>db</internal_type>
    <allowed>tx_foo_domain_model_bar</allowed>
    <minitems>1</minitems>
    <filter>
        <numIndex index="0">
            <userFunc>Foo/User/Filter->doFilter</userFunc>
            <parameters>
                <myParameter>abc</myParameter>
            </parameters>
        </numIndex>
    </filter>
</config>    

*Expected Behavior*
Foo/User/Filter->doFilter should be called

*Actual Behavior*
Foo/User/Filter->doFilter is not called because isRowListingConditionFulfilled looks for a filter in

$GLOBALS['TCA']['tt_content']['columns']['pi_flexform']['config']

*Possible Solution*
Introduce an exception for pi_flexform. Not that easy though because the content of the pi_flexform is not available at this point.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] ElementBrowserRecordlist::isRowListingConditionFulfilled does not work with flexforms Resolves: #100351 Releases: main