Project

General

Profile

Actions

Bug #24299

open

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

Added by Björn Pedersen about 14 years ago. Updated about 7 years ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2010-12-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
nightmare
Is Regression:
No
Sprint Focus:

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)


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #70921: Really resolve meaning of FlexForm fields in version dependency resolverAcceptedOliver Hader2015-10-21

Actions
Actions #1

Updated by Tolleiv Nietsch about 14 years ago

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

Actions #2

Updated by Alexander Opitz about 11 years ago

  • Target version deleted (0)
  • TYPO3 Version set to 4.4
  • Is Regression set to No
Actions #3

Updated by Alexander Opitz about 11 years ago

  • Status changed from New to Needs Feedback
  • TYPO3 Version changed from 4.4 to 4.5

Hi,

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

Actions #4

Updated by Michal Cygankiewicz almost 11 years ago

I have experienced the same behaviour in TYPO3 6.1.4

Actions #5

Updated by Alexander Opitz almost 11 years ago

@Michal Krypczyk 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.

Actions #6

Updated by Michal Cygankiewicz almost 11 years ago

<preview>
<field_img type="array">
<tx_templavoila type="array">
<title>Billede</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>custom</eType>
<TypoScript>
<![CDATA[
10 = FILES
10 {
references {
table = tt_content
uid.data = TSFE:register|tx_templavoila_pi1.parentRec.uid
fieldName = field_img
}
renderObj = IMAGE
renderObj {
file {
import.data = file:current:publicUrl
width = 320
}
altText.data = file:current:title
}
}
]]>
</TypoScript>
<proc type="array">
<HSC type="integer">0</HSC>
<stdWrap></stdWrap>
</proc>
<preview></preview>
</tx_templavoila>
<TCEforms type="array">
<label>Bilede</label>
<config type="array">
<type>inline</type>
<maxitems>1</maxitems>
<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>field_img</fieldname>
</foreign_match_fields>
<foreign_label>uid_local</foreign_label>
<foreign_selector>uid_local</foreign_selector>
<foreign_selector_fieldTcaOverride>
<config>
<appearance>
<elementBrowserType>file</elementBrowserType>
<elementBrowserAllowed>jpg,png</elementBrowserAllowed>
</appearance>
</config>
</foreign_selector_fieldTcaOverride>
<appearance>
<useSortable>TRUE</useSortable>
<headerThumbnail>
<field>uid_local</field>
<width>64</width>
<height>64</height>
</headerThumbnail>
<showPossibleLocalizationRecords>TRUE</showPossibleLocalizationRecords>
<showRemovedLocalizationRecords>TRUE</showRemovedLocalizationRecords>
<showSynchronizationLink>TRUE</showSynchronizationLink>

&lt;enabledControls&gt;
&lt;info&gt;FALSE&lt;/info&gt;
&lt;new&gt;FALSE&lt;/new&gt;
&lt;dragdrop&gt;TRUE&lt;/dragdrop&gt;
&lt;sort&gt;FALSE&lt;/sort&gt;
&lt;hide&gt;TRUE&lt;/hide&gt;
&lt;delete&gt;TRUE&lt;/delete&gt;
&lt;localize&gt;TRUE&lt;/localize&gt;
&lt;/enabledControls&gt;
&lt;/appearance&gt;
&lt;behaviour&gt;
&lt;localizationMode&gt;select&lt;/localizationMode&gt;
&lt;localizeChildrenAtParentLocalization&gt;TRUE&lt;/localizeChildrenAtParentLocalization&gt;
&lt;/behaviour&gt;
&lt;/config&gt;
&lt;/TCEforms&gt;
&lt;/field_img&gt;
Actions #7

Updated by Michal Cygankiewicz almost 11 years ago

Steps to reproduce:

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

Actions #8

Updated by Alexander Opitz almost 11 years ago

  • Category set to DataHandler aka TCEmain
  • Status changed from Needs Feedback to New

Thanks for helping.

Actions #9

Updated by Marcos Fadul over 10 years ago

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

Actions #10

Updated by Mathias Schreiber about 9 years ago

  • Assignee set to Christian Kuhn

@Christian Kuhn: Didn't we fix something like this a few weeks ago?

Actions #11

Updated by Oliver Hader about 7 years ago

  • Category changed from DataHandler aka TCEmain to Workspaces
  • Assignee deleted (Christian Kuhn)
  • Complexity set to nightmare
Actions #12

Updated by Oliver Hader about 7 years ago

  • Status changed from New to Accepted
Actions #13

Updated by Oliver Hader about 7 years ago

  • Related to Bug #70921: Really resolve meaning of FlexForm fields in version dependency resolver added
Actions #14

Updated by Oliver Hader about 7 years ago

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

Actions

Also available in: Atom PDF