Fix: affichait la note prive au lieu de la note public

This commit is contained in:
Regis Houssin 2006-05-26 07:18:31 +00:00
parent f63f8a570c
commit 45e516ff7d
4 changed files with 7 additions and 3 deletions

View File

@ -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>';

View File

@ -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

View File

@ -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>';
}

View File

@ -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>';
}