diff --git a/module/custom/control.php b/module/custom/control.php index 60772bcd1a..4fd1ba3be8 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -124,14 +124,15 @@ class custom extends control elseif($module == 'story' and $field == 'review') { $data = fixer::input('post') + ->setDefault('forceReviewAll', 0) ->setDefault('forceReviewDepts', '') ->join('forceReviewUsers', ',') ->join('forceReviewRoles', ',') ->join('forceReviewDepts', ',') + ->join('forceReviewAll', ',') + ->setIF(isset($this->post->forceReviewAll), 'forceReviewAll', 1) ->get(); - $data->forceReviewAll = isset($data->forceReviewAll) ? 1 : 0; - $this->loadModel('setting')->setItems("system.$module@{$this->config->vision}", $data); } elseif($module == 'story' and $field == 'reviewRules')