diff --git a/htdocs/core/boxes/box_actions.php b/htdocs/core/boxes/box_actions.php index ee41df3cdd2..551b892f0f7 100644 --- a/htdocs/core/boxes/box_actions.php +++ b/htdocs/core/boxes/box_actions.php @@ -34,7 +34,7 @@ class box_actions extends ModeleBoxes { public $boxcode = "lastactions"; public $boximg = "object_action"; - public $boxlabel = "BoxLastActions"; + public $boxlabel = "BoxOldestActions"; public $depends = array("agenda"); /** @@ -82,7 +82,7 @@ class box_actions extends ModeleBoxes $societestatic = new Societe($this->db); $actionstatic = new ActionComm($this->db); - $this->info_box_head = array('text' => $langs->trans("BoxTitleLastActionsToDo", $max)); + $this->info_box_head = array('text' => $langs->trans("BoxTitleOldestActionsToDo", $max)); if ($user->rights->agenda->myactions->read) { $sql = "SELECT a.id, a.label, a.datep as dp, a.percent as percentage"; @@ -108,7 +108,7 @@ class box_actions extends ModeleBoxes if (empty($user->rights->agenda->allactions->read)) { $sql .= " AND (a.fk_user_author = ".((int) $user->id)." OR a.fk_user_action = ".((int) $user->id)." OR a.fk_user_done = ".((int) $user->id).")"; } - $sql .= " ORDER BY a.datec DESC"; + $sql .= " ORDER BY a.datep ASC"; $sql .= $this->db->plimit($max, 0); dol_syslog(get_class($this)."::loadBox", LOG_DEBUG); diff --git a/htdocs/langs/en_US/boxes.lang b/htdocs/langs/en_US/boxes.lang index 2ace1eb97e1..4173d5e4c7e 100644 --- a/htdocs/langs/en_US/boxes.lang +++ b/htdocs/langs/en_US/boxes.lang @@ -46,6 +46,7 @@ BoxMyLastBookmarks=Bookmarks: latest %s BoxOldestExpiredServices=Oldest active expired services BoxLastExpiredServices=Latest %s oldest contacts with active expired services BoxTitleLastActionsToDo=Latest %s actions to do +BoxTitleOldestActionsToDo=Oldest %s event to do not completed BoxTitleLastContracts=Latest %s contracts which were modified BoxTitleLastModifiedDonations=Latest %s donations which were modified BoxTitleLastModifiedExpenses=Latest %s expense reports which were modified