From: vincent@cubedesigners.com Date: Tue, 8 Oct 2019 18:25:51 +0000 (+0000) Subject: wip #3112 @3 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=06edd70fecfd203f48dc074be2f9e7602ec5599d;p=cubeextranet.git wip #3112 @3 --- diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 09bd52dc5..81ab50061 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -919,17 +919,35 @@ class wsUrl self::checkDocumentVersionOfBook($book_id); + $dao = new wsDAOBook($core->con); if ($book_id == 'new') { - $dao = new wsDAOBook($core->con); $book = $dao->creeEmpty($core->user->utilisateur_id, $core->user->lang); http::redirect(SITE_PATH . 'editor/' . $book->book_id . '_' . $book->hash); + } else { + $book = $dao->selectById($book_id); } $res = ''; + $res .= ''; $res .= '' . __('Edition de la publication') . ' #' . $args[0] . ''; $res .= ''; $res .= '';