Entities problem with error message in predefined invoice creation

This commit is contained in:
Marcos García 2013-06-08 19:07:13 +02:00
parent bd4ca9f1ed
commit 532c56002d
2 changed files with 5 additions and 5 deletions

View File

@ -65,7 +65,7 @@ if ($action == 'add')
{ {
if (! GETPOST('titre')) if (! GETPOST('titre'))
{ {
setEventMessage($langs->trans("ErrorFieldRequired",$langs->trans("Title")), 'errors'); setEventMessage($langs->transnoentities("ErrorFieldRequired",$langs->trans("Title")), 'errors');
$action = "create"; $action = "create";
$error++; $error++;
} }
@ -138,7 +138,7 @@ if ($action == 'create')
print '</td></tr>'; print '</td></tr>';
// Title // Title
print '<tr><td>'.$langs->trans("Title").'</td><td>'; print '<tr><td class="fieldrequired">'.$langs->trans("Title").'</td><td>';
print '<input class="flat" type="text" name="titre" size="24" value="'.$_POST["titre"].'">'; print '<input class="flat" type="text" name="titre" size="24" value="'.$_POST["titre"].'">';
print '</td>'; print '</td>';