From 9cf249835e8fcaed7c56d3db4b01fb307463e112 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 27 Dec 2017 17:29:20 +0800 Subject: [PATCH] * fix bug for custom story review. --- module/custom/control.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/custom/control.php b/module/custom/control.php index 07e09e6b71..353a7f6a5c 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -81,7 +81,12 @@ class custom extends control if(strtolower($_SERVER['REQUEST_METHOD']) == "post") { - if(($module == 'story' or $module == 'testcase') and $field == 'review') + if($module == 'story' and $field == 'review') + { + $data = fixer::input('post')->join('forceReview', ',')->get(); + $this->loadModel('setting')->setItems("system.$module", $data); + } + elseif($module == 'testcase' and $field == 'review') { $review = fixer::input('post')->get(); if($review->needReview) $data = fixer::input('post')->join('forceNotReview', ',')->remove('forceReview')->get();