diff --git a/module/project/view/story.html.php b/module/project/view/story.html.php
index 51cc27c42a..757fc00ace 100644
--- a/module/project/view/story.html.php
+++ b/module/project/view/story.html.php
@@ -81,13 +81,13 @@
$param = "projectID={$project->id}&story={$story->id}&moduleID={$story->module}";
$lang->task->create = $lang->project->wbs;
- common::printIcon('task', 'create', $param, '', 'list', 'sitemap');
+ common::printIcon('task', 'create', $param, '', 'list', 'smile');
$lang->task->batchCreate = $lang->project->batchWBS;
common::printIcon('task', 'batchCreate', "projectID={$project->id}&story={$story->id}", '', 'list', 'stack');
$lang->testcase->batchCreate = $lang->testcase->create;
- if($productID) common::printIcon('testcase', 'batchCreate', "productID=$story->product&moduleID=$story->module&storyID=$story->id", '', 'list', 'smile');
+ if($productID) common::printIcon('testcase', 'batchCreate', "productID=$story->product&moduleID=$story->module&storyID=$story->id", '', 'list', 'sitemap');
if(common::hasPriv('project', 'unlinkStory'))
{
diff --git a/module/story/control.php b/module/story/control.php
index 11cb341123..31113029bf 100644
--- a/module/story/control.php
+++ b/module/story/control.php
@@ -157,6 +157,7 @@ class story extends control
$this->view->source = $source;
$this->view->pri = $pri;
$this->view->productID = $productID;
+ $this->view->projectID = $projectID;
$this->view->estimate = $estimate;
$this->view->storyTitle = $title;
$this->view->spec = $spec;
diff --git a/module/story/view/create.html.php b/module/story/view/create.html.php
index 038d69e846..6ed9a92181 100644
--- a/module/story/view/create.html.php
+++ b/module/story/view/create.html.php
@@ -93,7 +93,7 @@
| story->reviewedBy;?> |
|
- story->needNotReview, '', "id='needNotReview'");?> |
+ story->needNotReview, '', "id='needNotReview'" . ($projectID > 0 ? " checked='checked'" : ""));?> |
| story->mailto;?> |
diff --git a/module/task/control.php b/module/task/control.php
index c4be50db85..eada0d42c4 100644
--- a/module/task/control.php
+++ b/module/task/control.php
@@ -387,7 +387,9 @@ class task extends control
*/
public function view($taskID)
{
- $task = $this->task->getById($taskID, true);
+ $task = $this->task->getById($taskID, true);
+ $story = $this->story->getById($task->story);
+ $task->storySpec = ($story != null) ? $story->spec : '';
if(!$task) die(js::error($this->lang->notFound) . js::locate('back'));
/* Update action. */
diff --git a/module/task/lang/en.php b/module/task/lang/en.php
index 05646974a7..a002eef3f1 100644
--- a/module/task/lang/en.php
+++ b/module/task/lang/en.php
@@ -36,6 +36,7 @@ $lang->task->id = 'ID';
$lang->task->project = 'Project';
$lang->task->module = 'Module';
$lang->task->story = 'Story';
+$lang->task->storySpec = 'Story desc';
$lang->task->storyVersion = 'Version';
$lang->task->name = 'Name';
$lang->task->type = 'Type';
diff --git a/module/task/lang/zh-cn.php b/module/task/lang/zh-cn.php
index f66f2d4e44..c04127ac22 100644
--- a/module/task/lang/zh-cn.php
+++ b/module/task/lang/zh-cn.php
@@ -36,6 +36,7 @@ $lang->task->id = '编号';
$lang->task->project = '所属项目';
$lang->task->module = '所属模块';
$lang->task->story = '相关需求';
+$lang->task->storySpec = '需求描述';
$lang->task->storyVersion = '需求版本';
$lang->task->name = '任务名称';
$lang->task->type = '任务类型';
diff --git a/module/task/view/view.html.php b/module/task/view/view.html.php
index f15ff9e7de..ac00c41d36 100644
--- a/module/task/view/view.html.php
+++ b/module/task/view/view.html.php
@@ -69,6 +69,10 @@
desc;?>
+
fetch('file', 'printFiles', array('files' => $task->files, 'fieldset' => 'true'));?>
deleted) echo $actionLinks;?>
diff --git a/module/tree/model.php b/module/tree/model.php
index 60909d5ec0..d04140e670 100644
--- a/module/tree/model.php
+++ b/module/tree/model.php
@@ -636,7 +636,7 @@ class treeModel extends model
}
else
{
- if(common::hasPriv('tree', 'edit')) $linkHtml .= ' ' . html::a(helper::createLink('tree', 'edit', "module={$module->id}&type=$type"), $this->lang->tree->edit, '', 'data-toggle="modal" data-type="ajax" data-width="400"');
+ if(common::hasPriv('tree', 'edit')) $linkHtml .= ' ' . html::a(helper::createLink('tree', 'edit', "module={$module->id}&type=$type"), $this->lang->tree->edit, '', 'data-toggle="modal" data-type="ajax" data-width="500"');
if(common::hasPriv('tree', 'browse') and strpos($this->config->tree->noBrowse, ",$module->type,") === false) $linkHtml .= ' ' . html::a(helper::createLink('tree', 'browse', "root={$module->root}&type=$type&module={$module->id}"), $this->lang->tree->child);
if(common::hasPriv('tree', 'delete')) $linkHtml .= ' ' . html::a(helper::createLink('tree', 'delete', "root={$module->root}&module={$module->id}"), $this->lang->delete, 'hiddenwin');
if(common::hasPriv('tree', 'updateorder')) $linkHtml .= ' ' . html::input("orders[$module->id]", $module->order, 'class="text-center w-30px form-control inline input-sm"');
diff --git a/module/tree/view/edit.html.php b/module/tree/view/edit.html.php
index d20bb96590..862351aad8 100644
--- a/module/tree/view/edit.html.php
+++ b/module/tree/view/edit.html.php
@@ -11,8 +11,8 @@
*/
?>
app->getWebRoot();
-$jsRoot = $webRoot . "js/";
+$webRoot = $this->app->getWebRoot();
+$jsRoot = $webRoot . "js/";
?>
@@ -23,7 +23,7 @@ $jsRoot = $webRoot . "js/";
icons['edit']);?> tree->edit;?>
-