]> _ Git - cubeextranet.git/commitdiff
fix #2124
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 26 Jun 2020 17:10:17 +0000 (17:10 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 26 Jun 2020 17:10:17 +0000 (17:10 +0000)
inc/ws/Controlleur/class.ws.maintenance.php

index 628c1c16dfa4c9238779aee47d6fc08a014dc1ab..3d08d071edc0685e954d87a8746ec6b96427b50a 100644 (file)
@@ -85,6 +85,7 @@ class wsMaintenance
             $cmd = "cp -r $wf1 $wt";
             echo `$cmd`;
         }
+
         wsLinks::saveLinksInFile($to, $core->user->utilisateur_id, 'Copy links from #' . $from . '  to #' . $to, $tolinks, $torulers);
     }
 
@@ -626,7 +627,6 @@ class wsMaintenance
         for ($i = 0; $i < $times; $i++) {
             $newbook = $dao->duplicate($book_id, $core->user->utilisateur_id, null, true, true);
             $new_id = $newbook->book_id;
-            self::copyComposition([$book_id, $new_id]);
             self::copyLinks([$book_id, $new_id], true);
         }
     }