* Change page to limit in actions query.
This commit is contained in:
@@ -1601,10 +1601,6 @@ EOF;
|
||||
$this->session->set('componentLibList', $uri, 'assetlib');
|
||||
$this->session->set('opportunityList', $uri, 'project');
|
||||
|
||||
/* Set the pager. */
|
||||
$this->app->loadClass('pager', $static = true);
|
||||
$pager = new pager($recTotal, $recPerPage = 50, $pageID = 1);
|
||||
|
||||
/* Append id for secend sort. */
|
||||
$orderBy = $direction == 'next' ? 'date_desc' : 'date_asc';
|
||||
|
||||
@@ -1613,16 +1609,15 @@ EOF;
|
||||
$this->view->position[] = $this->lang->my->dynamic;
|
||||
|
||||
$date = empty($date) ? '' : date('Y-m-d', $date);
|
||||
$actions = $this->loadModel('action')->getDynamic($this->app->user->account, $type, $orderBy, $pager, 'all', 'all', 'all', $date, $direction);
|
||||
if(empty($originTotal)) $originTotal = $pager->recTotal;
|
||||
$actions = $this->loadModel('action')->getDynamic($this->app->user->account, $type, $orderBy, 50, 'all', 'all', 'all', $date, $direction);
|
||||
$dateGroups = $this->action->buildDateGroup($actions, $direction, $type);
|
||||
|
||||
/* Assign. */
|
||||
$this->view->type = $type;
|
||||
$this->view->orderBy = $orderBy;
|
||||
$this->view->pager = $pager;
|
||||
$this->view->dateGroups = $this->action->buildDateGroup($actions, $direction, $type);
|
||||
$this->view->dateGroups = $dateGroups;
|
||||
$this->view->direction = $direction;
|
||||
$this->view->originTotal = $originTotal;
|
||||
$this->view->originTotal = count($dateGroups, 1) - count($dateGroups);
|
||||
$this->display();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user