From 3ab4c924435452b8e54a3b27093a49b65c6d2cb6 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Tue, 11 Apr 2023 11:33:51 +0800 Subject: [PATCH] * Fix bug of task #89841. --- module/group/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/group/model.php b/module/group/model.php index 96b75b9e37..9226eeb925 100644 --- a/module/group/model.php +++ b/module/group/model.php @@ -2100,7 +2100,7 @@ class groupModel extends model ->andWhere('t3.objectType')->eq('priv') ->andWhere('t2.edition')->like("%,{$this->config->edition},%") ->andWhere('t2.vision')->like("%,{$this->config->vision},%") - ->orderBy('t2.`order`_asc') + ->orderBy('t2.`order`_asc, t1.`type` desc') ->fetchAll('relationPriv'); $privList = empty($type) ? array('depend' => array(), 'recommend' => array()) : array($type => array());