Fix: Notes must use dol_htmlentitiesbr to be shown.
This commit is contained in:
parent
e6cb0acc55
commit
fc92a2013f
@ -98,11 +98,13 @@ if ($_POST["action"] == 'add')
|
|||||||
$db->commit();
|
$db->commit();
|
||||||
|
|
||||||
Header("Location: fiche.php?id=".$editgroup->id);
|
Header("Location: fiche.php?id=".$editgroup->id);
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$langs->load("errors");
|
|
||||||
$db->rollback();
|
$db->rollback();
|
||||||
|
|
||||||
|
$langs->load("errors");
|
||||||
$message='<div class="error">'.$langs->trans("ErrorGroupAlreadyExists",$editgroup->nom).'</div>';
|
$message='<div class="error">'.$langs->trans("ErrorGroupAlreadyExists",$editgroup->nom).'</div>';
|
||||||
$action="create"; // Go back to create page
|
$action="create"; // Go back to create page
|
||||||
}
|
}
|
||||||
@ -311,7 +313,7 @@ else
|
|||||||
|
|
||||||
// Note
|
// Note
|
||||||
print '<tr><td width="25%" valign="top">'.$langs->trans("Note").'</td>';
|
print '<tr><td width="25%" valign="top">'.$langs->trans("Note").'</td>';
|
||||||
print '<td class="valeur">'.nl2br($group->note).' </td>';
|
print '<td class="valeur">'.dol_htmlentitiesbr($group->note).' </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user