* adjust for check flow require field.

This commit is contained in:
王怡栋
2022-03-03 16:11:10 +08:00
parent 4c4147b904
commit 9acdcb0abf
+5 -2
View File
@@ -129,7 +129,7 @@ class control extends baseControl
/**
* If change the edition, trigger the upgrade process.
*
*
* @access public
* @return void
*/
@@ -388,8 +388,11 @@ class control extends baseControl
if($this->config->edition == 'open') return false;
if(empty($_POST)) return false;
$action = $this->dao->select('*')->from(TABLE_WORKFLOWACTION)->where('module')->eq($this->moduleName)->andWhere('action')->eq($this->methodName)->fetch();
if($action->extensionType == 'none' and $action->buildin == 1) return false;
$flow = $this->dao->select('*')->from(TABLE_WORKFLOW)->where('module')->eq($this->moduleName)->fetch();
$fields = $this->loadModel('workflowaction')->getFields($this->moduleName, $this->methodName);
$fields = $this->workflowaction->getFields($this->moduleName, $this->methodName);
$layouts = $this->loadModel('workflowlayout')->getFields($this->moduleName, $this->methodName);
$rules = $this->dao->select('*')->from(TABLE_WORKFLOWRULE)->orderBy('id_desc')->fetchAll('id');