From 47ec417f167a4e138bca3322a42fea3abd40d107 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 19 May 2022 15:39:10 +0800 Subject: [PATCH] * Fix bug #22689. --- module/bug/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/bug/model.php b/module/bug/model.php index 0c2536da59..5976da81ad 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -2761,6 +2761,7 @@ class bugModel extends model ->orWhere('t2.spec')->like("%$searchValue%") ->orWhere('t2.verify')->like("%$searchValue%") ->fetchPairs('id'); + if(empty($story)) $story = array(0); $bugQuery = preg_replace("/`story`[ ]+(NOT[ ]*)?LIKE[ ]+'%$searchValue%'/Ui", '`story` $1 IN (' . implode(',', $story) .')', $bugQuery); }