[TYPO3-core] RFC: #10165: FlexForms: wrong mm-relations after copy and localize

Sebastian Böttger sebastian.boettger at gmail.com
Fri Mar 27 04:06:17 CET 2009


Hi Peter, hi all

I'll tried to test this patch, but there are no relations in the
Flexform-field in list module.
If I add an relation the normal way, it shows up. I test with T3 v4 trunk

Best wishes
Sebastian

Peter Kühn [wmdb>] schrieb:
> Hi Olly, hi yall,
>
> > Could you please provide a
> > test-extension or test-flexform to have a quickstart into this
> problem
> > which enables one to reproduce the behaviour?
>
> attached you find an extension containing a testing environement and
> the pdf version of the manual for those who prefer "+1 by reading" ;)
>
> hope this helps
> gRTz
> pekue
>
> Oliver Hader schrieb:
>> Hi pekue,
>>
>> Peter Kuehn [wmdb] schrieb:
>>> This is a SVN patch request.
>>>
>>> Type: Bugfix
>>>
>>> Bugtracker references: http://bugs.typo3.org/view.php?id=10165
>>>
>>> Branches: TYPO3 4-1, TYPO3 4-2, trunk
>>>
>>> Problem:
>>> On copy and localize of a record with a FlexfForm that contains a
>>> MM-reference field the resulting record points to wrong relations.
>>> The needed rows in the MM-table are created, but the field uid_local
>>> contains the number of relations instead of the uid of the correct
>>> target record.
>>>
>>>
>>> Solution:
>>> The comment in copyRecord_flexFormCallBack() says "If references
>>> are set
>>> for this field, set flag so they can be corrected later (in
>>> ->remapListedDBRecords())" but the remaping fails.
>>> Instead t3lib_loadDBGroup can be used to resolve the values on
>>> beforehand. The records are created correctly by process_datamap()
>>> afterwards and dont need to be remaped lateron.
>>
>> That fix sounds very interesting. But I fear, that bidirectional
>> asymmetric relations are not that easy... Could you please provide a
>> test-extension or test-flexform to have a quickstart into this problem
>> which enables one to reproduce the behaviour?
>>
>> Thanks in advance!
>>
>> olly
>
>
> ----------------------------------------------------------------------
>
> _______________________________________________
> Before posting to this list, please have a look to the posting rules
> on the following websites:
>
> http://typo3.org/teams/core/core-mailinglist-rules/
> http://typo3.org/development/bug-fixing/diff-and-patch/
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core



More information about the TYPO3-team-core mailing list