From df378ff26f328750617b4c9765fa26b94cfa41fc Mon Sep 17 00:00:00 2001 From: renying Date: Tue, 26 Apr 2022 07:44:38 +0000 Subject: [PATCH] Fixbug#19044 --- 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 26807f63fb..1796e00396 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -2690,7 +2690,7 @@ class storyModel extends model { $storyQuery = str_replace($allBranch, '1', $storyQuery); } - elseif($branch !== 'all') + elseif($branch !== 'all' and $queryProductID != 'all') { if($branch and strpos($storyQuery, '`branch` =') === false) $storyQuery .= " AND `branch` in($branch)"; }