From 378a9fa0717c282ce05a44bfdb8acc79c9ba129e Mon Sep 17 00:00:00 2001 From: dingguodong Date: Sat, 7 Oct 2023 13:25:10 +0800 Subject: [PATCH] * Disable the sort for exporting the stories. --- 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 ab47a3636b..b99bf9a12d 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -4523,7 +4523,7 @@ class storyModel extends model */ public function getExportStories(int $executionID, string $orderBy = 'id_desc', string $storyType = 'story', object|null $postData = null): array { - $orderBy = 'id_desc'; /* The order of the stories for exporting is disabled. */ + $orderBy = $orderBy !== 'id_desc' ? 'id_desc' : $orderBy; /* The order of the stories for exporting is disabled. */ $this->loadModel('file'); $this->loadModel('branch');