From d9a1be48cf8626fe48667bb66dc6de65521d3b28 Mon Sep 17 00:00:00 2001 From: "geoffrey.girard" Date: Wed, 1 Jun 2016 09:44:43 +0200 Subject: [PATCH] ADD : new link on weather board for proposals late this link sort on datep asc --- htdocs/comm/propal/class/propal.class.php | 1 + htdocs/index.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 56c3839dcb6..2d4fb0a1da0 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -2571,6 +2571,7 @@ class Propal extends CommonObject $response->warning_delay = $delay_warning/60/60/24; $response->label = $label; $response->url = DOL_URL_ROOT.'/comm/propal/list.php?viewstatut='.$statut; + $response->url_late = DOL_URL_ROOT.'/comm/propal/list.php?viewstatut='.$statut.'&sortfield=p.datep&sortorder=asc'; $response->img = img_object($langs->trans("Propals"),"propal"); // This assignment in condition is not a bug. It allows walking the results. diff --git a/htdocs/index.php b/htdocs/index.php index b28038e63c9..03de65e25e5 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -543,7 +543,7 @@ foreach($valid_dashboardlines as $board) //if ($board->nbtodolate > 0) //{ $textlate = $langs->trans("Late").' = '.$langs->trans("DateReference").' > '.$langs->trans("DateToday").' '.(ceil($board->warning_delay) >= 0 ? '+' : '').ceil($board->warning_delay).' '.$langs->trans("days"); - $boxwork.= ''; + $boxwork.= ''; $boxwork.= $board->nbtodolate; $boxwork.= ''; //}