Issue Bug Rejected

#83712Prevention of deleting images from filelist, referenced in flexform sections, is not working

Armin Vieweg 01/29/18, 12:07 updated 02/12/18, 17:41

Description

When you use an image from FAL in a regular TCA column or in a flexform directly, you can’t delete the image from filelist:

2018-01-29_1203.png

It’s protected.

When you use the TCA field type="group" with appearance -> elementBrowserType: file, instead of inline, the reference is basically recognized from the system:
2018-01-29_1159.png

But when deleting the file this reference is not respected anymore.
All other references (regular TCA column, e.g.) are respected!

This is a flexform field configuration, which allows to reconstruct the issue:

<config>
    <type>group</type>
    <internal_type>db</internal_type>
    <appearance>
        <elementBrowserType>file</elementBrowserType>
        <elementBrowserAllowed>gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pdf,ai,svg</elementBrowserAllowed>
    </appearance>
    <allowed>sys_file</allowed>
    <size>5</size>
    <minitems>0</minitems>
    <maxitems>5</maxitems>
    <show_thumbs>1</show_thumbs>

    <dce_load_schema>1</dce_load_schema>
    <dce_get_fal_objects>1</dce_get_fal_objects>
</config>

Reviews 1