From f4e565ea93d7a9f9190d5a14c7b4bbb30de69a79 Mon Sep 17 00:00:00 2001 From: Yagami Date: Thu, 20 Sep 2018 16:33:39 +0800 Subject: [PATCH] * Finish task #4867. --- module/user/model.php | 1 + module/user/view/project.html.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/user/model.php b/module/user/model.php index d2ffb88000..725190bc08 100644 --- a/module/user/model.php +++ b/module/user/model.php @@ -851,6 +851,7 @@ class userModel extends model ->where('t1.type')->eq('project') ->andWhere('t1.account')->eq($account) ->andWhere('t2.deleted')->eq(0) + ->orderBy('t2.id_desc') ->fetchAll(); /* Judge whether the project is delayed. */ diff --git a/module/user/view/project.html.php b/module/user/view/project.html.php index 7af7a97ee6..264a5cbb02 100644 --- a/module/user/view/project.html.php +++ b/module/user/view/project.html.php @@ -33,8 +33,8 @@ createLink('project', 'browse', "projectID=$project->id");?> - id);?> - code;?> + id);?> + code;?> name);?> begin;?> end;?>