Project

General

Profile

Actions

Task #67579

closed

Epic #67492: Clean up DataHandler

Remove code duplication in DataHandler::copyRecord_processManyToMany()

Added by Andreas Wolf over 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
DataHandler aka TCEmain
Target version:
Start date:
2015-06-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

(This relies on #67510 being merged, as the method name is introduced there; until that happens, the method name is copyRecord_procBasedOnFieldType())

There is an if-elseif construct in the method that contains 99% duplicated code and two extremely ugly conditions. The duplication should be removed, while simplifying the condition to an understandable level (or documenting it properly).

Actions

Also available in: Atom PDF