Fix: affichait la note prive au lieu de la note public
This commit is contained in:
parent
f63f8a570c
commit
45e516ff7d
@ -895,7 +895,7 @@ else
|
||||
}
|
||||
print '</td>';
|
||||
print '<td rowspan="'.$nbrow.'" valign="top">'.$langs->trans('NotePublic').' :<br>';
|
||||
print nl2br($commande->note);
|
||||
print nl2br($commande->note_public);
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -182,7 +182,7 @@ if ($_GET["id"] > 0)
|
||||
{
|
||||
print '<form action="fiche.php?id='.$id.'" method="post">';
|
||||
print '<input type="hidden" name="action" value="setnote">';
|
||||
print '<textarea name="note" rows="4" style="width:95%;">'.$commande->note.'</textarea><br>';
|
||||
print '<textarea name="note" rows="4" style="width:95%;">'.$commande->note_public.'</textarea><br>';
|
||||
print '<center><input type="submit" class="button" value="'.$langs->trans('Save').'"></center>';
|
||||
print '</form>';
|
||||
}
|
||||
|
||||
@ -182,7 +182,7 @@ if ($_GET["id"] > 0)
|
||||
{
|
||||
print '<form action="fiche.php?id='.$id.'" method="post">';
|
||||
print '<input type="hidden" name="action" value="setnote">';
|
||||
print '<textarea name="note" rows="4" style="width:95%;">'.$commande->note.'</textarea><br>';
|
||||
print '<textarea name="note" rows="4" style="width:95%;">'.$commande->note_public.'</textarea><br>';
|
||||
print '<center><input type="submit" class="button" value="'.$langs->trans('Save').'"></center>';
|
||||
print '</form>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user