diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 093741253d2..96dfee663da 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -3037,6 +3037,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.'&mainmenu=commercial&leftmenu=propals'; + $response->url_late = DOL_URL_ROOT.'/comm/propal/list.php?viewstatut='.$statut.'&mainmenu=commercial&leftmenu=propals&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 16126975b9f..233f94ea22c 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -544,14 +544,11 @@ foreach($valid_dashboardlines as $board) $boxwork.= ''.$board->img.''.$board->label.''; $boxwork.= ''.$board->nbtodo.''; $boxwork.= ''; - //if ($board->nbtodolate > 0) - //{ $textlate = $langs->trans("NActionsLate",$board->nbtodolate); $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.= ''; - //} $boxwork.=''; $boxwork.=''; if ($board->nbtodolate > 0) $boxwork.=img_picto($textlate,"warning");