diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index b066871fe55..be28c6ee0a7 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -807,7 +807,9 @@ else if ($id > 0 || ! empty($ref)) { print $langs->trans('Description'); print ''; - print $form->editInPlace(dol_nl2br($object->description), 'description', $user->rights->ficheinter->creer && $object->statut == 0); + // 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->description), 'description', $user->rights->ficheinter->creer && $object->statut == 0, 'area'); } else { @@ -870,7 +872,9 @@ else if ($id > 0 || ! empty($ref)) // Public note print ''.$langs->trans("NotePublic").''; print ''; - print $form->editInPlace(dol_nl2br($object->note_public), 'note_public', $user->rights->ficheinter->creer); + // FIXME parameter note_public 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->ficheinter->creer, 'area'); print ""; // Private note