diff --git a/framework/control.class.php b/framework/control.class.php index 6fe28bd99c..675734e109 100644 --- a/framework/control.class.php +++ b/framework/control.class.php @@ -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');