Project

General

Profile

Actions

Bug #91183

closed

FAL inline field in FlexForms does not add file

Added by Armin Vieweg about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-04-23
Due date:
% Done:

100%

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

Description

When you create a FlexForm with this field configuration for FAL:

<config>
    <type>inline</type>
    <foreign_table>sys_file_reference</foreign_table>
    <foreign_field>uid_foreign</foreign_field>
    <foreign_sortby>sorting_foreign</foreign_sortby>
    <foreign_table_field>tablenames</foreign_table_field>
    <foreign_match_fields>
        <fieldname>my_fieldname</fieldname>
    </foreign_match_fields>
    <foreign_label>uid_local</foreign_label>
    <foreign_selector>uid_local</foreign_selector>
    <overrideChildTca>
        <columns>
            <uid_local>
                <config>
                    <appearance>
                        <elementBrowserType>file</elementBrowserType>
                        <elementBrowserAllowed>gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pdf,ai,svg</elementBrowserAllowed>
                    </appearance>
                </config>
            </uid_local>
            <types type="array">
                <numIndex index="2">
                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
                </numIndex>
            </types>
        </columns>
    </overrideChildTca>

    <minitems>0</minitems>
    <maxitems>99</maxitems>

    <appearance>
        <useSortable>1</useSortable>
        <headerThumbnail>
            <field>uid_local</field>
            <width>45c</width>
            <height>45</height>
        </headerThumbnail>

        <enabledControls>
            <info>1</info>
            <dragdrop>1</dragdrop>
            <hide>1</hide>
            <new>0</new>
            <sort>0</sort>
            <delete>1</delete>
        </enabledControls>

        <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
    </appearance>

    <behaviour>
        <allowLanguageSynchronization>1</allowLanguageSynchronization>
    </behaviour>
</config>

You get the buttons to add or upload a file. Also uploading files work. But when you select a file, it does not appear in inline list. No errors in JavaScript console. No errors in AJAX calls. Maybe my configuration is wrong, but I've basically used the one from pages->media.


Files


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #91585: JavaScript-Error breaks Flexform IRRE elementsClosed2020-06-04

Actions
Actions #1

Updated by Raphael Zschorsch about 4 years ago

I can confirm this issue. Everything works fine, but the image is not added in backend after selecting it.

Actions #2

Updated by Andreas Kienast about 4 years ago

I cannot confirm this issue. I've put this Flexform configuration into inline_flex_1 of EXT:styleguide and everything works fine so far. Are you able to provide your TCA as well, especially for fieldname>my_fieldname</fieldname>

Actions #3

Updated by Andreas Kienast about 4 years ago

  • Status changed from New to Needs Feedback
Actions #4

Updated by Armin Vieweg about 4 years ago

"my_fieldname" is not a TCA field. It's the name of the variable, you've defined in your DCE field. In the past, this worked properly.

Updated by Armin Vieweg about 4 years ago

Steps to reproduce:

1. Install EXT:news
2. Modify typo3conf\ext\news\Configuration\FlexForms\flexform_news.xml and add a new field with the configuration above (e.g. "settings.test")
3. Put a news plugin anywhere you want and try to add or upload an image:

You will get the file picker, but after selecting a file, nothing happens.

In console, there is a JS issue, when opening the form (before selecting file):

Actions #6

Updated by Gerrit Code Review about 4 years ago

  • Status changed from Needs Feedback 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/+/64343

Actions #7

Updated by Andreas Fernandez about 4 years ago

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

Updated by Benni Mack about 4 years ago

  • Status changed from Resolved to Closed
Actions #9

Updated by Anja Leichsenring about 4 years ago

  • Related to Bug #91585: JavaScript-Error breaks Flexform IRRE elements added
Actions

Also available in: Atom PDF