From aec3ce6341381381fa1a6e47cac439184309cb37 Mon Sep 17 00:00:00 2001 From: mjansen Date: Mon, 6 Jan 2025 20:03:35 +0100 Subject: [PATCH] CopyWizard: Fix duplicate copies (in 2nd - nth target) when selecting multiple targets See: https://mantis.ilias.de/view.php?id=42234 --- Services/CopyWizard/classes/class.ilCopyWizardOptions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Services/CopyWizard/classes/class.ilCopyWizardOptions.php b/Services/CopyWizard/classes/class.ilCopyWizardOptions.php index dae606592028..21c3f4f7ed16 100644 --- a/Services/CopyWizard/classes/class.ilCopyWizardOptions.php +++ b/Services/CopyWizard/classes/class.ilCopyWizardOptions.php @@ -242,6 +242,7 @@ public function initContainer(int $a_source_id, int $a_target_id): void */ public function storeTree(int $a_source_id): void { + $this->tmp_tree = []; $this->readTree($a_source_id); $a_tree_structure = $this->tmp_tree;