From ebd31dd2ed7bf9aaee147e52379a4bdeb7e68b83 Mon Sep 17 00:00:00 2001 From: kyle <1549684884@qq.com> Date: Fri, 15 Sep 2023 07:38:02 +0000 Subject: [PATCH] * Judgment of multi-select fields. --- module/common/model.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index 4d54a1f36e..b14520ef4e 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -3725,7 +3725,12 @@ EOF; foreach($postData as $key => $value) { if(!is_array($value) or strpos($this->config->$objectType->excludeCheckFileds, ",$key,") !== false) continue; - if(isset($value[$index]) and !empty($value[$index]) and $value[$index] != 'ditto') return true; + if(isset($value[$index]) and !empty($value[$index]) and $value[$index] != 'ditto') + { + /* Judgment of multi-select fields. */ + if(is_array($value[$index]) and join(',', $value[$index]) == '') continue; + return true; + } } return false;