From 79ebf4a441786e91bd700245629c49ff53bf85ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B9=BF=E6=98=8E?= Date: Thu, 26 May 2022 09:42:12 +0800 Subject: [PATCH] * Fix bug #22944. --- module/custom/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/custom/control.php b/module/custom/control.php index 6ed32f35e7..b9ac2695de 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -143,8 +143,9 @@ class custom extends control elseif($module == 'testcase' and $field == 'review') { $review = fixer::input('post')->get(); - if($review->needReview) $data = fixer::input('post')->join('forceNotReview', ',')->remove('forceReview')->get(); + if($review->needReview) $data = fixer::input('post')->join('forceNotReview', ',')->remove('forceReview')->get(); if(!$review->needReview) $data = fixer::input('post')->join('forceReview', ',')->remove('forceNotReview')->get(); + if(!isset($data->forceReview)) $data->forceReview = ''; $this->loadModel('setting')->setItems("system.$module", $data); $reviewCase = isset($review->reviewCase) ? $review->reviewCase : 0;