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); }