From b617d40d519c24f05390b62a4e902ea3ae42287a Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 22 Feb 2012 08:02:29 +0000 Subject: [PATCH] * adjust order of project and product. --- module/product/view/order.html.php | 2 +- module/project/model.php | 2 +- module/project/view/order.html.php | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/module/product/view/order.html.php b/module/product/view/order.html.php index e7e970b9c9..dd0c448d41 100644 --- a/module/product/view/order.html.php +++ b/module/product/view/order.html.php @@ -21,7 +21,7 @@ id?> - name?> + name?> id, $product->order, "size='5'")?> diff --git a/module/project/model.php b/module/project/model.php index 27134f4671..d8c799ae0f 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -309,7 +309,7 @@ class projectModel extends model ->andWhere('t2.iscat')->eq(0) ->beginIF($status == 'undone')->andWhere('t2.status')->ne('done')->fi() ->beginIF($status != 'all' and $status != 'undone')->andWhere('status')->in($status)->fi() - ->orderBy($this->config->project->orderBy) + ->orderBy('`order`, status') ->beginIF($limit)->limit($limit)->fi() ->fetchAll('id'); } diff --git a/module/project/view/order.html.php b/module/project/view/order.html.php index 3bc8240735..0ee09e24ea 100644 --- a/module/project/view/order.html.php +++ b/module/project/view/order.html.php @@ -14,7 +14,7 @@
- + @@ -24,7 +24,7 @@ status == 'done') continue;?> - + @@ -35,7 +35,7 @@
project->statusUndone?>
project->id?> project->name?> project->status?>
id?>name?>name?> project->statusList[$project->status]?> id, $project->order, "size='5'")?>
- + @@ -44,7 +44,7 @@ status != 'done') continue;?> - +
project->statusDone?>
project->id?> project->name?> project->order?>
id?>name?>name?> id, $project->order, "size='5'")?>