Project

General

Profile

Actions

Bug #59423

closed

Field name not passed to getFlexFormDS in copyRecord_procBasedOnFieldType

Added by Claus Due over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-06-09
Due date:
% Done:

100%

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

Description

As title says, DataHandler's copyRecord_procBasedOnFieldType method itself receives the $field variable containing the name of the column in the record to which the flexform belongs, but does not pass this $field variable to BackendUtility::getFlexFormDS which means dynamic flexforms that depend on the field name, behave in unexpected ways when a record is copied and multiple flexform DS definitions exist for that record for separate fields (symptom: incorrect DS is loaded, resulting in incorrect detection of for example file fields, in turn causing ill effects such as incorrectly handled relations and bad validation).

Fixing the problem is as easy as adding the $field parameter when calling BackendUtility::getFlexFormDS.

Actions

Also available in: Atom PDF