Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
1f87f515ad
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user