diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 31b69836b50..beae197579b 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -654,7 +654,7 @@ if ($action == 'create') if ($socid > 0) { $soc->fetch($socid); - + print '
'; print ''; @@ -668,7 +668,7 @@ if ($action == 'create') // Ref print ''.$langs->trans("Ref").''; print ''."\n"; - + // Description (must be a textarea and not html must be allowed (used in list view) print ''.$langs->trans("Description").''; print ''; @@ -696,14 +696,14 @@ if ($action == 'create') $liste=ModelePDFFicheinter::liste_modeles($db); print $form->selectarray('model',$liste,$conf->global->FICHEINTER_ADDON_PDF); print ""; - + // Public note print ''; print ''.$langs->trans('NotePublic').''; print ''; print ''; print ''; - + // Private note if (! $user->societe_id) { @@ -745,7 +745,7 @@ else if ($id > 0 || ! empty($ref)) /* * Affichage en mode visu */ - + $object->fetch($id, $ref); $object->fetch_thirdparty(); @@ -866,13 +866,13 @@ else if ($id > 0 || ! empty($ref)) // Statut print ''.$langs->trans("Status").''.$object->getLibStatut(4).''; - + // Public note print ''.$langs->trans("NotePublic").''; print ''; print $form->editInPlace($object->note_public, 'note_public', $user->rights->ficheinter->creer, 'textarea'); print ""; - + // Private note if (! $user->societe_id) { @@ -922,7 +922,7 @@ else if ($id > 0 || ! empty($ref)) print ''; print ''; print ''; // ancre pour retourner sur la ligne - print nl2br($objp->description); + print dol_htmlentitiesbr($objp->description); // Date print ''.dol_print_date($db->jdate($objp->date_intervention),'dayhour').'';