Issue Bug Closed

#24299MM foreign-table relations in flexform field are not updated when publishing

Björn Pedersen 12/06/10, 11:06 updated 11/06/26, 11:09

Description

Steops to reproduce:
Add a TemplaVoila Flexible Content-Element wiht e.g. a DAM image reference to a page in the workspace.
After publishing, the Images are lost.

I report it here, but it could be that it really belongs to TemplaVoila.

Flexform XML:

            <field_logos_allimages type="array">
                <type>no_map</type>
                <tx_templavoila type="array">
                    <title>Logo images</title>
                    <sample_data type="array">
                        <numIndex index="0"></numIndex>
                    </sample_data>
                    <eType>dam_image</eType>
                    <TypoScript><![CDATA[
]]></TypoScript>
                    <proc type="array">
                        <int>0</int>
                        <HSC>0</HSC>
                        <stdWrap></stdWrap>
                    </proc>
                    <preview></preview>
                    <eType_EXTRA type="array">
                        <refTable>tt_content</refTable>
                    </eType_EXTRA>
                </tx_templavoila>
                <TCEforms type="array">
                    <label>Logos</label>
                    <config type="array">
                        <form_type>user</form_type>
                        <userFunc><![CDATA[EXT:dam/lib/class.tx_dam_tcefunc.php:&tx_dam_tceFunc->getSingleField_typeMedia]]></userFunc>
                        <type>group</type>
                        <internal_type>db</internal_type>
                        <allowed>tx_dam</allowed>
                        <prepend_tname type="integer">1</prepend_tname>
                        <MM>tx_dam_mm_ref</MM>
                        <MM_foreign_select type="integer">1</MM_foreign_select>
                        <MM_opposite_field>file_usage</MM_opposite_field>
                        <MM_match_fields type="array">
                            <ident>field_logos_allimages</ident>
                        </MM_match_fields>
                        <allowed_types>pdf,gif,jpg,jpeg,tif,bmp,ai,pcx,tga,png,eps</allowed_types>
                        <max_size>1000</max_size>
                        <show_thumbs type="integer">1</show_thumbs>
                        <size type="integer">5</size>
                        <maxitems type="integer">200</maxitems>
                        <minitems type="integer">0</minitems>
                        <autoSizeMax type="integer">30</autoSizeMax>
                    </config>
                </TCEforms>
            </field_logos_allimages>

(issue imported from #M16687)

Reviews 0

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

History 17

  1. Tolleiv Nietsch commented <span data-processor="relativetime" data-value="2010-12-07T00:20:53+00:00" > 12/07/10, 00:20 </span>

    no this does NOT belong to TemplaVoila – Flexform-processing is done in the Core

  2. Alexander Opitz changed target version TYPO3 Version 4.4 Is Regression 0 <span data-processor="relativetime" data-value="2013-11-26T14:58:25+00:00" > 11/26/13, 14:58 </span>

  3. Alexander Opitz commented and changed status New Needs Feedback TYPO3 Version 4.4 4.5 <span data-processor="relativetime" data-value="2013-11-26T14:58:53+00:00" > 11/26/13, 14:58 </span>

    Hi,

    as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (4.5 or 6.1)?

  4. Michal Cygankiewicz commented <span data-processor="relativetime" data-value="2014-01-28T11:48:25+00:00" > 01/28/14, 11:48 </span>

    I have experienced the same behaviour in TYPO3 6.1.4

  5. Alexander Opitz commented <span data-processor="relativetime" data-value="2014-01-28T11:51:16+00:00" > 01/28/14, 11:51 </span>

    @Michal Cygankiewicz

    Can you provide configuration and step to reproduce? As DAM do not exist for TYPO3 6.x, so we have an easy way to test patches.

  6. Michal Cygankiewicz commented <span data-processor="relativetime" data-value="2014-01-28T12:25:38+00:00" > 01/28/14, 12:25 </span>

    <preview><br> <field_img type="array"><br> <tx_templavoila type="array"><br> <title>Billede</title><br> <sample_data type="array"><br> <numindex index="0"></numindex><br> </sample_data><br> <etype>custom</etype><br> <typoscript><br> <![CDATA[<br />10 = FILES<br />10 {<br /> references {<br /> table = tt_content<br /> uid.data = TSFE:register|tx_templavoila_pi1.parentRec.uid<br /> fieldName = field_img<br /> }<br /> renderObj = IMAGE<br /> renderObj {<br /> file {<br /> import.data = file:current:publicUrl<br /> width = 320<br /> }<br /> altText.data = file:current:title<br /> }<br />}<br /> ]]><br> </typoscript><br> <proc type="array"><br> <hsc type="integer">0</hsc><br> <stdwrap></stdwrap><br> </proc><br> <preview></preview><br> </tx_templavoila><br> <tceforms type="array"><br> <label>Bilede</label><br> <config type="array"><br> <type>inline</type><br> <maxitems>1</maxitems><br> <foreign_table>sys_file_reference</foreign_table><br> <foreign_field>uid_foreign</foreign_field><br> <foreign_sortby>sorting_foreign</foreign_sortby><br> <foreign_table_field>tablenames</foreign_table_field><br> <foreign_match_fields><br> <fieldname>field_img</fieldname><br> </foreign_match_fields><br> <foreign_label>uid_local</foreign_label><br> <foreign_selector>uid_local</foreign_selector><br> <foreign_selector_fieldtcaoverride><br> <config><br> <appearance><br> <elementbrowsertype>file</elementbrowsertype><br> <elementbrowserallowed>jpg,png</elementbrowserallowed><br> </appearance><br> </config><br> </foreign_selector_fieldtcaoverride><br> <appearance><br> <usesortable>TRUE</usesortable><br> <headerthumbnail><br> <field>uid_local</field><br> <width>64</width><br> <height>64</height><br> </headerthumbnail><br> <showpossiblelocalizationrecords>TRUE</showpossiblelocalizationrecords><br> <showremovedlocalizationrecords>TRUE</showremovedlocalizationrecords><br> <showsynchronizationlink>TRUE</showsynchronizationlink></appearance></config></tceforms></field_img></preview>

    <enabledcontrols><br> <info>FALSE</info><br> <new>FALSE</new><br> <dragdrop>TRUE</dragdrop><br> <sort>FALSE</sort><br> <hide>TRUE</hide><br> <delete>TRUE</delete><br> <localize>TRUE</localize><br> </enabledcontrols>

    <behaviour><br> <localizationmode>select</localizationmode><br> <localizechildrenatparentlocalization>TRUE</localizechildrenatparentlocalization><br> </behaviour>


  7. Michal Cygankiewicz commented <span data-processor="relativetime" data-value="2014-01-28T12:28:37+00:00" > 01/28/14, 12:28 </span>

    Steps to reproduce:

    1. Add content in workspace.
    2. After publishing, relations in LIVE will be lost.

  8. Alexander Opitz commented and changed category status Needs Feedback New <span data-processor="relativetime" data-value="2014-01-29T08:18:37+00:00" > 01/29/14, 08:18 </span>

    Thanks for helping.

  9. Marcos Fadul commented <span data-processor="relativetime" data-value="2014-04-23T12:18:52+00:00" > 04/23/14, 12:18 </span>

    Hi everybody,
    is there any news about this bug? I having some issues with it in Typo3 6.1.8.

  10. Mathias Schreiber commented and changed assigned to Christian Kuhn <span data-processor="relativetime" data-value="2015-11-12T18:20:59+00:00" > 11/12/15, 18:20 </span>

    @lolli: Didn’t we fix something like this a few weeks ago?

  11. Oliver Hader changed category removed the assignee Complexity nightmare <span data-processor="relativetime" data-value="2017-11-14T17:27:40+00:00" > 11/14/17, 17:27 </span>

  12. Oliver Hader commented <span data-processor="relativetime" data-value="2017-11-14T17:29:52+00:00" > 11/14/17, 17:29 </span>

    Related to #70921 – nested references (1:n like in FAL) defined in a FlexForm are not analyzed when publishing using the ReferenceIndex

  13. Benni Mack commented and changed status Accepted Closed <span data-processor="relativetime" data-value="2026-11-06T11:09:50+00:00" > 11/06/26, 11:09 </span>

    MM relations of FlexForm fields are handled correctly on workspace publish since #95275 / #81718 (commit e90691287ea, v11.5). I verified on current main that creating or copying a record with FlexForm MM relations in a workspace and publishing it keeps all relations in live. Closing this issue. The FAL/inline case mentioned in the comments is tracked in #70921.