From 2051453e569df679243b2c27df4367c74284d58b Mon Sep 17 00:00:00 2001 From: sunguangming Date: Fri, 26 Apr 2024 16:15:02 +0800 Subject: [PATCH] * Remove comment editor config from edit page. --- module/task/config.php | 2 +- module/testcase/config.php | 1 - module/testcase/zen.php | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/module/task/config.php b/module/task/config.php index cae8dca38d..f8301cfd67 100644 --- a/module/task/config.php +++ b/module/task/config.php @@ -29,7 +29,7 @@ $config->task->unfinishedStatus = array('wait', 'doing', 'pause'); $config->task->editor = new stdclass(); $config->task->editor->create = array('id' => 'desc', 'tools' => 'simpleTools'); -$config->task->editor->edit = array('id' => 'desc,comment', 'tools' => 'simpleTools'); +$config->task->editor->edit = array('id' => 'desc', 'tools' => 'simpleTools'); $config->task->editor->view = array('id' => 'comment,lastComment', 'tools' => 'simpleTools'); $config->task->editor->assignto = array('id' => 'comment', 'tools' => 'simpleTools'); $config->task->editor->start = array('id' => 'comment', 'tools' => 'simpleTools'); diff --git a/module/testcase/config.php b/module/testcase/config.php index 93b63380c9..ee682f4058 100644 --- a/module/testcase/config.php +++ b/module/testcase/config.php @@ -11,7 +11,6 @@ $config->testcase->edit = new stdclass(); $config->testcase->edit->requiredFields = 'title,type'; $config->testcase->editor = new stdclass(); -$config->testcase->editor->edit = array('id' => 'comment', 'tools' => 'simpleTools'); $config->testcase->editor->view = array('id' => 'comment,lastComment', 'tools' => 'simpleTools'); $config->testcase->editor->review = array('id' => 'comment', 'tools' => 'simpleTools'); diff --git a/module/testcase/zen.php b/module/testcase/zen.php index cede79a299..e5c02a0065 100755 --- a/module/testcase/zen.php +++ b/module/testcase/zen.php @@ -653,12 +653,11 @@ class testcaseZen extends testcase ->join('linkCase', ',') ->cleanInt('story,product,branch,module') ->skipSpecial('script') - ->stripTags($this->config->testcase->editor->edit['id'], $this->config->allowedTags) ->remove('files,labels,scriptFile,scriptName') ->removeIF($formData->data->auto == 'auto' && !$formData->data->script, 'script') ->get(); - return $this->loadModel('file')->processImgURL($case, $this->config->testcase->editor->edit['id'], $this->post->uid); + return $case; } /**