Fix: Support of LF in note for supplier orders

This commit is contained in:
Laurent Destailleur 2009-04-01 23:00:59 +00:00
parent 191f1e5fb5
commit d8e484ada7

View File

@ -141,7 +141,7 @@ if ($id > 0 || ! empty($ref))
print '<tr><td valign="top">'.$langs->trans("NotePublic").'</td>';
print '<td colspan="2">';
if ($user->rights->fournisseur->commande->creer) print '<textarea cols="90" rows="'.ROWS_4.'" name="note_public">';
print nl2br($commande->note_public);
print $commande->note_public;
if ($user->rights->fournisseur->commande->creer) print '</textarea>';
print '</td></tr>';
@ -150,7 +150,7 @@ if ($id > 0 || ! empty($ref))
print '<tr><td valign="top">'.$langs->trans("NotePrivate").'</td>';
print '<td colspan="2">';
if ($user->rights->fournisseur->commande->creer) print '<textarea cols="90" rows="'.ROWS_6.'" name="note">';
print nl2br($commande->note);
print $commande->note;
if ($user->rights->fournisseur->commande->creer) print '</textarea>';
print '</td></tr>';
}