* fix bug for custom story review.

This commit is contained in:
wangyidong
2017-12-27 17:29:20 +08:00
parent 706fc34c5a
commit 9cf249835e
+6 -1
View File
@@ -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();