From 4f23bc92db5980005259cb07ae0b635fe5fe4102 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Sun, 6 Jan 2013 03:03:10 +0000 Subject: [PATCH] * code for task#1043. --- module/my/control.php | 6 +++++- module/my/view/bug.html.php | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/module/my/control.php b/module/my/control.php index 291ab22e78..6f609ed41b 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -197,7 +197,7 @@ class my extends control ->where('t2.deleted')->eq(0) ->andWhere('t1.deleted')->eq(0) ->andWhere('t1.assignedTo')->eq($this->app->user->account) - ->orderBy('t1.id_desc')->page($pager)->fetchAll(); + ->orderBy($orderBy)->page($pager)->fetchAll(); } elseif($type == 'openedbyme') { @@ -230,6 +230,10 @@ class my extends control $this->view->users = $this->user->getPairs('noletter'); $this->view->tabID = 'bug'; $this->view->type = $type; + $this->view->recTotal = $recTotal; + $this->view->recPerPage = $recPerPage; + $this->view->pageID = $pageID; + $this->view->orderBy = $orderBy; $this->view->pager = $pager; $this->display(); diff --git a/module/my/view/bug.html.php b/module/my/view/bug.html.php index 677cd376d8..2e9eaedd06 100644 --- a/module/my/view/bug.html.php +++ b/module/my/view/bug.html.php @@ -11,7 +11,6 @@ */ ?> -
recTotal}&recPerPage={$pager->recPerPage}"; ?> + - - - - - - - - - + + + + + + + + +
idAB;?>bug->severityAB;?>priAB;?>typeAB;?>bug->title;?>openedByAB;?>bug->resolvedByAB;?>bug->resolutionAB;?>actions;?> idAB);?> bug->severityAB);?> priAB);?> typeAB);?> bug->title);?> openedByAB);?> bug->resolvedByAB);?>bug->resolutionAB);?>actions;?>