Bug #24299
openMM foreign-table relations in flexform field are not updated when publishing
0%
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)
Updated by Tolleiv Nietsch about 14 years ago
no this does NOT belong to TemplaVoila - Flexform-processing is done in the Core
Updated by Alexander Opitz about 11 years ago
- Target version deleted (
0) - TYPO3 Version set to 4.4
- Is Regression set to No
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)?
Updated by Michal Cygankiewicz almost 11 years ago
I have experienced the same behaviour in TYPO3 6.1.4
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.
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>
<enabledControls>
<info>FALSE</info>
<new>FALSE</new>
<dragdrop>TRUE</dragdrop>
<sort>FALSE</sort>
<hide>TRUE</hide>
<delete>TRUE</delete>
<localize>TRUE</localize>
</enabledControls>
</appearance>
<behaviour>
<localizationMode>select</localizationMode>
<localizeChildrenAtParentLocalization>TRUE</localizeChildrenAtParentLocalization>
</behaviour>
</config>
</TCEforms>
</field_img>
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.
Updated by Alexander Opitz almost 11 years ago
- Category set to DataHandler aka TCEmain
- Status changed from Needs Feedback to New
Thanks for helping.
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.
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?
Updated by Oliver Hader about 7 years ago
- Category changed from DataHandler aka TCEmain to Workspaces
- Assignee deleted (
Christian Kuhn) - Complexity set to nightmare
Updated by Oliver Hader about 7 years ago
- Related to Bug #70921: Really resolve meaning of FlexForm fields in version dependency resolver added
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