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

index 0ea7bdf7bb6e234fe1b37936dbad5988841e588c..d5c353c0b0aadee1f928574de2b54214ce44e4f6 100644 (file)
@@ -207,6 +207,7 @@ class wsAjax extends cubeAjax
         $dao = new wsDAOBook($core->con);
         if ($_POST['book'] != '') {
             $book = $dao->duplicate($_POST['book'], $core->user->utilisateur_id, $_POST['title'], isset($_POST['pages']));
+            wsMaintenance::copyLinks([$_POST['book'],$book->book_id]);
         } else {
             $book = $dao->creeEmpty($core->user->utilisateur_id, $core->user->lang, $_POST['title']);
         }