Skip to content
Snippets Groups Projects
Commit 31b62ce3 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: bug #31825 : Tri des taches par date du plus récent au plus ancien

parent 86589d23
No related branches found
No related tags found
No related merge requests found
<?php
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2003 Eric Seigne <erics@rycks.com>
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
*
* This program is free software; you can redistribute it and/or modify
......@@ -22,7 +22,7 @@
/**
* \file htdocs/comm/action/listactions.php
* \ingroup agenda
* \brief Page liste des actions commerciales
* \brief Page to list actions
* \version $Id$
*/
......@@ -56,7 +56,7 @@ $offset = $limit * $page ;
if (! $sortorder)
{
$sortorder="ASC";
if ($status == 'todo') $sortorder="DESC";
if ($status == 'todo') $sortorder="ASC";
if ($status == 'done') $sortorder="DESC";
}
if (! $sortfield)
......@@ -235,7 +235,7 @@ if ($resql)
if ($obj->percent == 0 && ! $obj->dp && $obj->dp2 && $db->jdate($obj->dp) < ($now - $delay_warning)) $late=1;
if ($obj->percent > 0 && $obj->percent < 100 && $obj->dp2 && $db->jdate($obj->dp2) < ($now - $delay_warning)) $late=1;
if ($obj->percent > 0 && $obj->percent < 100 && ! $obj->dp2 && $obj->dp && $db->jdate($obj->dp) < ($now - $delay_warning)) $late=1;
if ($late) print img_warning($langs->trans("Late"));
if ($late) print img_warning($langs->trans("Late")).' ';
print '</td>';
print '<td align="center" nowrap="nowrap">';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment