From 8c05ec4e3ed1d3dbdce96f40d19165b72e745e86 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 4 Feb 2020 17:11:01 +0800 Subject: [PATCH] * finish task #9811. --- framework/control.class.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/framework/control.class.php b/framework/control.class.php index bbd5b39c5c..3b0fea09d4 100644 --- a/framework/control.class.php +++ b/framework/control.class.php @@ -58,6 +58,19 @@ class control extends baseControl } } } + + $textareaFields = $this->dao->select('*')->from(TABLE_WORKFLOWFIELD)->where('module')->eq($this->moduleName)->andWhere('control')->eq('textarea')->andWhere('buildin')->eq('0')->fetchAll('field'); + if($textareaFields) + { + $editorIdList = array(); + foreach($textareaFields as $textareaField) $editorIdList[] = $textareaField->field; + + if(!isset($this->config->{$this->moduleName})) $this->config->{$this->moduleName} = new stdclass(); + if(!isset($this->config->{$this->moduleName}->editor)) $this->config->{$this->moduleName}->editor = new stdclass(); + if(!isset($this->config->{$this->moduleName}->editor->{$this->methodName})) $this->config->{$this->moduleName}->editor->{$this->methodName} = array('id' => '', 'tools' => 'simpleTools'); + $this->config->{$this->moduleName}->editor->{$this->methodName}['id'] .= ',' . join(',', $editorIdList); + trim($this->config->{$this->moduleName}->editor->{$this->methodName}['id'], ','); + } } }