Add a FIXME note

This commit is contained in:
Laurent Destailleur 2011-10-28 01:06:41 +02:00
parent 30a3d20604
commit 035730acdc

View File

@ -807,7 +807,9 @@ else if ($id > 0 || ! empty($ref))
{
print $langs->trans('Description');
print '</td><td colspan="3">';
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 '<tr><td valign="top">'.$langs->trans("NotePublic").'</td>';
print '<td valign="top" colspan="3">';
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 "</td></tr>";
// Private note