Fix: error if used a futur date
This commit is contained in:
parent
eaf654ed32
commit
f922ad5ff1
@ -355,6 +355,10 @@ if ($_POST["action"] == 'livraison' && $user->rights->fournisseur->commande->rec
|
|||||||
Header("Location: fiche.php?id=".$id);
|
Header("Location: fiche.php?id=".$id);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
else if($result == -3)
|
||||||
|
{
|
||||||
|
$mesg='<div class="error">'.$langs->trans("NotAuthorized").'</div>';
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dol_print_error($db,$commande->error);
|
dol_print_error($db,$commande->error);
|
||||||
|
|||||||
@ -1158,6 +1158,7 @@ class CommandeFournisseur extends Commande
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
dol_syslog("CommandeFournisseur::Livraison Not Authorized");
|
dol_syslog("CommandeFournisseur::Livraison Not Authorized");
|
||||||
|
$result = -3;
|
||||||
}
|
}
|
||||||
return $result ;
|
return $result ;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user