From 7e02324b22926de7ac5beb37e71395a2ef7e77ce Mon Sep 17 00:00:00 2001 From: liyuchun <563917701@qq.com> Date: Fri, 4 Nov 2022 15:17:49 +0800 Subject: [PATCH] * Fix bug #27253. --- module/story/model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index 7cbd5a6035..6cf5eb21b8 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -3191,7 +3191,9 @@ class storyModel extends model if(!$executionID) return array(); $execution = $this->dao->findById($executionID)->from(TABLE_PROJECT)->fetch(); - $type = strtolower($type); + $orderBy = str_replace('branch_', 't2.branch_', $orderBy); + $type = strtolower($type); + if($type == 'bysearch') { $queryID = (int)$param;