From ea7f00e77756dad0980ad0d1254c3232755c1f98 Mon Sep 17 00:00:00 2001 From: Fab Date: Mon, 23 Mar 2015 20:05:31 +0100 Subject: [PATCH] Fix displaying of the warning image. Since last commit, $objp->date_livraison returns nothing ; max() will then returns wrong result, and the warning image will be displayed when it should not. --- htdocs/commande/liste.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/commande/liste.php b/htdocs/commande/liste.php index 9f5f1e7fe58..6f009fa2eb0 100644 --- a/htdocs/commande/liste.php +++ b/htdocs/commande/liste.php @@ -341,7 +341,7 @@ if ($resql) print ''; print ''; - if (($objp->fk_statut > 0) && ($objp->fk_statut < 3) && max($db->jdate($objp->date_commande),$db->jdate($objp->date_livraison)) < ($now - $conf->commande->client->warning_delay)) + if (($objp->fk_statut > 0) && ($objp->fk_statut < 3) && max($db->jdate($objp->date_commande),$db->jdate($objp->date_delivery)) < ($now - $conf->commande->client->warning_delay)) print img_picto($langs->trans("Late"),"warning"); if(!empty($objp->note_private)) {