diff --git a/htdocs/compta/deplacement/fiche.php b/htdocs/compta/deplacement/fiche.php index dfd532eb36c..d1559311620 100644 --- a/htdocs/compta/deplacement/fiche.php +++ b/htdocs/compta/deplacement/fiche.php @@ -405,7 +405,9 @@ else if ($id) // Public note print ''.$langs->trans("NotePublic").''; print ''; - print $form->editInPlace(dol_nl2br($object->note_public), 'note_public', $user->rights->deplacement->creer); + // FIXME parameter note_private must not be denatured with a format function to be propagated. dol_nl2br must be used + // by editInPlace if necessary according to type (4rd parameter) + print $form->editInPlace(dol_nl2br($object->note_public), 'note_public', $user->rights->deplacement->creer, 'area'); print ""; // Private note @@ -413,7 +415,9 @@ else if ($id) { print ''.$langs->trans("NotePrivate").''; print ''; - print $form->editInPlace(dol_nl2br($object->note_private), 'note', $user->rights->deplacement->creer); + // FIXME parameter note_private must not be denatured with a format function to be propagated. dol_nl2br must be used + // by editInPlace if necessary according to type (4rd parameter) + print $form->editInPlace(dol_nl2br($object->note_private), 'note', $user->rights->deplacement->creer, 'area'); print ""; }