diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 0b34db86dc8..9d752bef6de 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -895,7 +895,7 @@ else } print ''; print ''.$langs->trans('NotePublic').' :
'; - print nl2br($commande->note); + print nl2br($commande->note_public); print ''; print ''; diff --git a/htdocs/commande/info.php b/htdocs/commande/info.php index ca7e5793e16..7b08c45e258 100644 --- a/htdocs/commande/info.php +++ b/htdocs/commande/info.php @@ -35,6 +35,10 @@ require_once(DOL_DOCUMENT_ROOT."/lib/order.lib.php"); $langs->load("orders"); $langs->load("sendings"); +$user->getrights('commande'); +if (!$user->rights->commande->lire) + accessforbidden(); + /* * Visualisation de la fiche diff --git a/htdocs/compta/commande/fiche.php b/htdocs/compta/commande/fiche.php index 73548222616..6a098f722b3 100644 --- a/htdocs/compta/commande/fiche.php +++ b/htdocs/compta/commande/fiche.php @@ -182,7 +182,7 @@ if ($_GET["id"] > 0) { print '
'; print ''; - print '
'; + print '
'; print '
'; print '
'; } diff --git a/htdocs/expedition/commande.php b/htdocs/expedition/commande.php index d1b7b6eda5e..73106dc6227 100644 --- a/htdocs/expedition/commande.php +++ b/htdocs/expedition/commande.php @@ -182,7 +182,7 @@ if ($_GET["id"] > 0) { print '
'; print ''; - print '
'; + print '
'; print '
'; print '
'; }