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);
|
||||
exit;
|
||||
}
|
||||
else if($result == -3)
|
||||
{
|
||||
$mesg='<div class="error">'.$langs->trans("NotAuthorized").'</div>';
|
||||
}
|
||||
else
|
||||
{
|
||||
dol_print_error($db,$commande->error);
|
||||
|
||||
@ -1158,6 +1158,7 @@ class CommandeFournisseur extends Commande
|
||||
else
|
||||
{
|
||||
dol_syslog("CommandeFournisseur::Livraison Not Authorized");
|
||||
$result = -3;
|
||||
}
|
||||
return $result ;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user