From f57c75b5c5e8e8ee138f72016ab006a5125fd959 Mon Sep 17 00:00:00 2001 From: "shiyangyangwork@yahoo.cn" Date: Sat, 29 Oct 2011 08:29:03 +0000 Subject: [PATCH] * adjust code for the task #536. --- module/project/model.php | 4 +++- module/project/view/importbug.html.php | 11 ++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/module/project/model.php b/module/project/model.php index 262e75de18..9dbb775b11 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -580,6 +580,8 @@ class projectModel extends model $bugLang = $this->app->loadLang('bug'); $this->loadModel('task'); $this->loadModel('story'); + $bugPath = $this->app->getModulePath('bug', 'config'); + $now = helper::now(); $BugToTasks = fixer::input('post')->get(); foreach($BugToTasks->import as $key => $value) @@ -595,7 +597,7 @@ class projectModel extends model $task->consumed = 0; $task->status = 'wait'; $task->statusCustom = 1; - $task->desc = $bugLang->bug->resolve . ':' . sprintf('%03d', $key); + $task->desc = $bugLang->bug->resolve . ':' . '#' . html::a(helper::createLink('bug', 'view', "bugID=$key"), sprintf('%03d', $key)); $task->openedDate = $now; $task->openedBy = $this->app->user->account; if(!empty($BugToTasks->estimate[$key])) diff --git a/module/project/view/importbug.html.php b/module/project/view/importbug.html.php index eaed856979..c0c7b7726b 100755 --- a/module/project/view/importbug.html.php +++ b/module/project/view/importbug.html.php @@ -12,8 +12,10 @@ ?> +
- +
+ @@ -23,8 +25,10 @@ - + + + @@ -38,8 +42,9 @@ + -
import;?> idAB;?>bug->statusAB;?> task->pri;?> task->assignedTo;?>task->estimate;?>task->estimate;?>
id]", '');?> id]", '', 'size=4');?>
show();?>
import) . html::resetButton();?>
+
import) . html::resetButton();?>