From f42471337f3bea7ac478fa843956b0d841837e0c Mon Sep 17 00:00:00 2001 From: mayue Date: Fri, 18 Mar 2022 11:01:55 +0800 Subject: [PATCH] * Fix bug #6960. --- module/story/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index e23c63ecae..3d5e12ecb0 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -2864,7 +2864,7 @@ class storyModel extends model ->beginIF($moduleIdList)->andWhere('t2.module')->in($moduleIdList)->fi() ->beginIF($status == 'unclosed')->andWhere('t2.status')->ne('closed')->fi() ->orderBy('t1.`order` desc') - ->fetchAll(); + ->fetchAll('id'); return empty($stories) ? array() : $this->formatStories($stories, $type); }