* get dynamic of latest 3 days.

This commit is contained in:
wangchunsheng
2012-08-28 01:14:14 +00:00
parent 2bd72c839c
commit 02f1706188
+2 -2
View File
@@ -41,11 +41,11 @@ class my extends control
/* Set the dynamic pager. */
$this->app->loadClass('pager', true);
$pager = new pager(0, $this->config->my->dynamicCounts);
$pager = new pager($recTotal = 1000, $this->config->my->dynamicCounts); // Init the $recTotal var, thus omit one sql query.
$this->view->projectStats = $projectStats;
$this->view->productStats = $productStats;
$this->view->actions = $this->loadModel('action')->getDynamic('all', 'all', 'date_desc', $pager);
$this->view->actions = $this->loadModel('action')->getDynamic('all', 'latest3days', 'date_desc', $pager);
$this->view->todos = $this->loadModel('todo')->getList('all', $account, 'wait, doing', $this->config->my->todoCounts);
$this->view->tasks = $this->loadModel('task')->getUserTasks($account, 'assignedTo', $this->config->my->taskCounts);
$this->view->bugs = $this->loadModel('bug')->getUserBugPairs($account, false, $this->config->my->bugCounts);