From a958e216cabd1a4c7ff8cb3cf53b0c3dfebb00e5 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Thu, 22 Sep 2011 00:31:23 +0000 Subject: [PATCH] * order by date instead of id. --- module/company/control.php | 2 +- module/my/control.php | 4 ++-- module/user/control.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/company/control.php b/module/company/control.php index c675a8a525..f054062c82 100644 --- a/module/company/control.php +++ b/module/company/control.php @@ -148,7 +148,7 @@ class company extends control * @access public * @return void */ - public function dynamic($type = 'today', $param = '', $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) + public function dynamic($type = 'today', $param = '', $orderBy = 'date_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) { /* Save session. */ $uri = $this->app->getURI(true); diff --git a/module/my/control.php b/module/my/control.php index 6fa5822ad6..b8d8bc4dcc 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -45,7 +45,7 @@ class my extends control $this->view->projectStats = $projectStats; $this->view->productStats = $productStats; - $this->view->actions = $this->loadModel('action')->getDynamic('all', 'all', 'id_desc', $pager); + $this->view->actions = $this->loadModel('action')->getDynamic('all', 'all', '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); @@ -344,7 +344,7 @@ class my extends control * @access public * @return void */ - public function dynamic($type = 'today', $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) + public function dynamic($type = 'today', $orderBy = 'date_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) { /* Save session. */ $uri = $this->app->getURI(true); diff --git a/module/user/control.php b/module/user/control.php index b34e28e2c3..4850db504c 100644 --- a/module/user/control.php +++ b/module/user/control.php @@ -450,7 +450,7 @@ class user extends control * @access public * @return void */ - public function dynamic($period = 'today', $account = '', $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) + public function dynamic($period = 'today', $account = '', $orderBy = 'date_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) { /* set menus. */ $this->lang->set('menugroup.user', 'company');