Bug #17345

Copying a page with related child records leads to duplicates of each children

Added by Oliver Hader almost 14 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2007-05-31
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When a page that contains several IRRE children gets copied, currenty to following happens:
  • copy record of table "pages"
  • copy each record with the pid of the source page to the new page (also all IRRE children)
  • when an IRRE parent get copied, this calls recursively the copying of its children

Thus, the IRRE children get copied twice - by their parent record and by the page.

(issue imported from #M5718)


Files

0005718_v3.patch (1.82 KB) 0005718_v3.patch Administrator Admin, 2007-06-18 16:47

Related issues

Related to TYPO3 Core - Bug #17340: IRRE children on the table pages get the pid of the parent page in pagetreeClosedOliver Hader2007-05-30

Actions
#1

Updated by Oliver Hader almost 14 years ago

The attaches file 0005718.patch solves this issue. When a page gets copied and thus also all records on this page, it is now checked if these records have been copied before by the IRRE mechanism in TCEmain.

#2

Updated by Oliver Hader almost 14 years ago

I attached an new patch. The check is move to copyRecord() in TCEmain. The check on workspace copies was missing and integrated in the new patch.

#3

Updated by Oliver Hader almost 14 years ago

Committed to SVN:
  • TYPO3_4-1 (rev. 2413)
  • Trunk (rev. 2414)

Also available in: Atom PDF