From 921a09eef0cebf916eec9fdb87de0e06d01d655f Mon Sep 17 00:00:00 2001 From: "chencongzhi520@gmail.com" Date: Thu, 11 Apr 2013 08:32:09 +0000 Subject: [PATCH] * finish task#1190. --- module/action/model.php | 2 +- module/bug/config.php | 3 ++- module/bug/view/view.html.php | 3 ++- module/common/control.php | 2 +- module/doc/config.php | 2 +- module/story/config.php | 4 +++- module/story/view/edit.html.php | 1 + module/story/view/view.html.php | 3 ++- module/task/config.php | 3 ++- module/task/view/view.html.php | 3 ++- module/testcase/config.php | 4 ++++ module/testcase/view/edit.html.php | 3 ++- module/testcase/view/view.html.php | 3 ++- module/testtask/config.php | 2 +- www/js/my.full.js | 5 +++-- 15 files changed, 29 insertions(+), 14 deletions(-) diff --git a/module/action/model.php b/module/action/model.php index 45ca10c780..9ae18ab770 100644 --- a/module/action/model.php +++ b/module/action/model.php @@ -38,7 +38,7 @@ class actionModel extends model $action->actor = $this->app->user->account; $action->action = strtolower($actionType); $action->date = helper::now(); - $action->comment = htmlspecialchars($comment); + $action->comment = $comment; $action->extra = $extra; /* Get product and project for this object. */ diff --git a/module/bug/config.php b/module/bug/config.php index bfe09aa2c4..a17eeb0748 100644 --- a/module/bug/config.php +++ b/module/bug/config.php @@ -117,4 +117,5 @@ $config->bug->list->exportFields = 'id, product, module, project, story, task, $config->bug->editor = new stdclass(); $config->bug->editor->create = array('id' => 'steps', 'tools' => 'bugTools'); -$config->bug->editor->edit = array('id' => 'steps', 'tools' => 'bugTools'); +$config->bug->editor->edit = array('id' => 'steps,comment', 'tools' => 'bugTools'); +$config->bug->editor->view = array('id' => 'comment', 'tools' => 'bugTools'); diff --git a/module/bug/view/view.html.php b/module/bug/view/view.html.php index 976953d491..12608a0f2b 100644 --- a/module/bug/view/view.html.php +++ b/module/bug/view/view.html.php @@ -11,6 +11,7 @@ */ ?> +
deleted) echo "class='deleted'";?>>BUG #id . ' ' . $bug->title;?>
@@ -62,7 +63,7 @@ fetch('file', 'printFiles', array('files' => $bug->files, 'fieldset' => 'true'));?> -