Fix: Badd error message
This commit is contained in:
parent
748d769140
commit
d9dc8de4e6
@ -88,17 +88,24 @@ if ($action == 'confirm_active' && $confirm == 'yes' && $user->rights->contrat->
|
|||||||
|
|
||||||
else if ($action == 'confirm_closeline' && $confirm == 'yes' && $user->rights->contrat->activer)
|
else if ($action == 'confirm_closeline' && $confirm == 'yes' && $user->rights->contrat->activer)
|
||||||
{
|
{
|
||||||
$object->fetch($id);
|
if (! GETPOST('dateend'))
|
||||||
$result = $object->close_line($user, GETPOST('ligne'), GETPOST('dateend'), urldecode(GETPOST('comment')));
|
{
|
||||||
|
$error++;
|
||||||
if ($result > 0)
|
setEventMessage($langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("DateEnd")),'errors');
|
||||||
{
|
}
|
||||||
header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
|
if (! $error)
|
||||||
exit;
|
{
|
||||||
}
|
$object->fetch($id);
|
||||||
else {
|
$result = $object->close_line($user, GETPOST('ligne'), GETPOST('dateend'), urldecode(GETPOST('comment')));
|
||||||
$mesg=$object->error;
|
if ($result > 0)
|
||||||
}
|
{
|
||||||
|
header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$mesg=$object->error;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Si ajout champ produit predefini
|
// Si ajout champ produit predefini
|
||||||
@ -1514,7 +1521,7 @@ else
|
|||||||
if ($objp->statut == 4)
|
if ($objp->statut == 4)
|
||||||
{
|
{
|
||||||
print $langs->trans("DateEndReal").' ';
|
print $langs->trans("DateEndReal").' ';
|
||||||
$form->select_date($dateactend,"end",$usehm,$usehm,($objp->date_fin_reelle>0?0:1),"closeline");
|
$form->select_date($dateactend,"end",$usehm,$usehm,($objp->date_fin_reelle>0?0:1),"closeline",1,1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user