Project

General

Profile

Actions

Bug #72738

closed

Flexform: Duplicate entry after saving when FAL is part of nested flexform

Added by XIMA MEDIA GmbH over 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2016-01-15
Due date:
% Done:

0%

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

Description

There is a nested flexform xml with FAL integration.

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
    <meta>
        <langDisable>1</langDisable>
    </meta>
    <ROOT>
        <type>array</type>
        <el type="array">
            <headline type="array">
                <TCEforms type="array">
                    <config type="array">
                        <type>input</type>
                        <size>48</size>
                        <eval>trim</eval>
                    </config>
                    <label>Teaserbox Headline</label>
                </TCEforms>
            </headline>
            <teaserwrapper type="array">
                <type>array</type>
                <section>1</section>
                <el type="array">
                    <teaser>
                        <type>array</type>
                        <title>Teaser</title>
                        <section>1</section>
                        <el type="array">
                            <teaserimage>
                                <TCEforms>
                                    <label>Teaser image</label>
                                    <config>
                                        <type>inline</type>
                                        <maxitems>1</maxitems>
                                        <minitems>0</minitems>
                                        <foreign_table>sys_file_reference</foreign_table>
                                        <foreign_table_field>tablenames</foreign_table_field>
                                        <foreign_label>uid_local</foreign_label>
                                        <foreign_sortby>sorting_foreign</foreign_sortby>
                                        <foreign_selector>uid_local</foreign_selector>
                                        <foreign_selector_fieldTcaOverride type="array">
                                            <config>
                                                <appearance>
                                                    <elementBrowserType>file</elementBrowserType>
                                                    <elementBrowserAllowed>jpg,png</elementBrowserAllowed>
                                                </appearance>
                                            </config>
                                        </foreign_selector_fieldTcaOverride>
                                        <foreign_match_fields type="array">
                                            <fieldname>teaserimage</fieldname>
                                        </foreign_match_fields>
                                        <appearance type="array">
                                            <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
                                            <headerThumbnail>
                                                <field>uid_local</field>
                                                <height>64</height>
                                                <width>64</width>
                                            </headerThumbnail>
                                        </appearance>
                                    </config>
                                </TCEforms>
                            </teaserimage>
                            <teasertext>
                                <TCEforms type="array">
                                    <config type="array">
                                        <type>text</type>
                                        <cols>48</cols>
                                        <rows>5</rows>
                                    </config>
                                    <defaultExtras>richtext[*]:rte_transform[flag=rte_enabled|mode=ts_css]</defaultExtras>
                                    <label>Teasertext</label>
                                </TCEforms>
                            </teasertext>
                            <teaserdate>
                                <TCEforms type="array">
                                    <config type="array">
                                        <type>input</type>
                                        <size>48</size>
                                        <eval>trim</eval>
                                    </config>
                                    <label>Teaserdate</label>
                                </TCEforms>
                            </teaserdate>
                            <teaserlink>
                                <TCEforms type="array">
                                    <config type="array">
                                        <type>input</type>
                                        <size>15</size>
                                        <max>256</max>
                                        <checkbox></checkbox>
                                        <eval>trim</eval>
                                        <wizards type="array">
                                            <_PADDING type="integer">2</_PADDING>
                                            <link type="array">
                                                <type>popup</type>
                                                <title>Link</title>
                                                <icon>link_popup.gif</icon>
                                                <module type="array">
                                                    <name>wizard_element_browser</name>
                                                    <urlParameters type="array">
                                                        <mode>wizard</mode>
                                                        <act>file</act>
                                                    </urlParameters>
                                                </module>
                                                <JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
                                            </link>
                                        </wizards>
                                    </config>
                                    <label>Teaserlink</label>
                                </TCEforms>
                            </teaserlink>
                        </el>
                    </teaser>
                </el>
            </teaserwrapper>
            <linktext>
                <TCEforms type="array">
                    <config type="array">
                        <type>input</type>
                        <size>48</size>
                        <eval>trim</eval>
                    </config>
                    <label>Linktext for URL to overview</label>
                </TCEforms>
            </linktext>
            <linkurl>
                <TCEforms type="array">
                    <config type="array">
                        <type>input</type>
                        <size>15</size>
                        <max>256</max>
                        <checkbox></checkbox>
                        <eval>trim</eval>
                        <wizards type="array">
                            <_PADDING type="integer">2</_PADDING>
                            <link type="array">
                                <type>popup</type>
                                <title>Link</title>
                                <icon>link_popup.gif</icon>
                                <module type="array">
                                    <name>wizard_element_browser</name>
                                    <urlParameters type="array">
                                        <mode>wizard</mode>
                                        <act>file</act>
                                    </urlParameters>
                                </module>
                                <JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
                            </link>
                        </wizards>
                    </config>
                    <label>URL to overview</label>
                </TCEforms>
            </linkurl>
        </el>
    </ROOT>
</T3DataStructure>

I add a new content element (gridelement) in TYPO3 named Teaser. When I add new teaser element in that content element there are are duplicate entries. I recognized the problem in context with FAl (sys_file_reference) in the nested fleform xml. When i delete that field saving is fine an no duplicate entries are created.

Maybe that is in context with https://forge.typo3.org/issues/71436.

TYPO3: 7.6.2
Gridelements: 7.0.0

Thanks in advance!

Actions #1

Updated by Steve Lenz over 8 years ago

The type "array" isn't supported by TCA (https://docs.typo3.org/typo3cms/TCAReference/Reference/Index.html)

It could be possible to fix this problem with type "inline" instead of "array" in teaserwrapper and teaser :

<teaserwrapper type="array">
    <type>inline</type>

and

<teaser>
      <type>inline</type>
Actions #2

Updated by XIMA MEDIA GmbH over 8 years ago

Hi Steve,

thanks for your post! I tried it out. But type "inline" does not solve it. I get an error "Broken data structure on field name pi_flexform. section without type or vice versa is not allowed" in the bachend when I want to use the content element.

Actions #3

Updated by Alexander Opitz over 7 years ago

Does the patch from #76923 help here too?

Actions #4

Updated by Alexander Opitz over 7 years ago

  • Status changed from New to Needs Feedback

The patch of #76923 is merged. Does it fix your issue?

Actions #5

Updated by Riccardo De Contardi over 7 years ago

  • Status changed from Needs Feedback to Closed

No feedback since the last 90 days > closing this issue.

If you think that this is the wrong decision or experience the issue again, then please reopen it or open a new issue with a reference to this one. Thank you

Actions

Also available in: Atom PDF