From 10c7ddac8fa7b4324128fb9a4e2f2cc921b61cd9 Mon Sep 17 00:00:00 2001 From: chaideqing Date: Mon, 24 Apr 2023 16:32:40 +0800 Subject: [PATCH] * Remove check workflow. --- module/execution/model.php | 29 ----------------------------- test/class/execution.class.php | 13 ------------- 2 files changed, 42 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index fb92c42f96..6895d02cb3 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -5784,11 +5784,6 @@ class executionModel extends model $post = $_POST; $_POST = array(); - $extendFields = $this->getExtendFields(); - foreach(array_keys($extendFields) as $field) - { - if(isset($post[$field])) $_POST[$field] = $post[$field]; - } $_POST['project'] = $projectID; $_POST['name'] = $project->name; @@ -5843,11 +5838,6 @@ class executionModel extends model $post = $_POST; $_POST = array(); - $extendFields = $this->getExtendFields(); - foreach(array_keys($extendFields) as $field) - { - if(isset($post[$field])) $_POST[$field] = $post[$field]; - } $_POST['project'] = $projectID; $_POST['name'] = $project->name; @@ -6037,23 +6027,4 @@ class executionModel extends model } return $sortedExecutions; } - - /** - * Get Extend Fields in workflow. - * - * @param string $module - * @access public - * @return array - */ - public function getExtendFields($module = 'project') - { - $extendFields = $this->dao->select('field') - ->from(TABLE_WORKFLOWFIELD) - ->where('module')->eq('project') - ->andWhere('buildin')->eq(0) - ->andWhere('role')->eq('custom') - ->fetchPairs('field'); - - return $extendFields; - } } diff --git a/test/class/execution.class.php b/test/class/execution.class.php index a773c81725..5c79afdd64 100644 --- a/test/class/execution.class.php +++ b/test/class/execution.class.php @@ -2979,17 +2979,4 @@ class executionTest } return $executionIDList; } - - /** - * Get user custom workflow field. - * - * @param string $moduleName - * @access public - * @return array - */ - public function getExtendFieldsTest($moduleName = 'project') - { - $extendFields = $this->executionModel->getExtendFields($moduleName); - return $extendFields; - } }