From 6dbcfcd27c62b650338b6ce550bfcecd44d9cb4b Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Wed, 28 Oct 2009 01:41:20 +0000 Subject: [PATCH] * if the task no story, don't output the story link. --- module/project/view/task.html.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/module/project/view/task.html.php b/module/project/view/task.html.php index 45eb58ec96..fb7aa3b40a 100644 --- a/module/project/view/task.html.php +++ b/module/project/view/task.html.php @@ -88,8 +88,11 @@ function selectProject(projectID) status;?> >task->statusList->{$task->status};?> createLink('story', 'view', "storyid=$task->storyID"), $task->storyTitle); - else echo $task->storyTitle; + if($task->storyID) + { + if(common::hasPriv('story', 'view')) echo html::a($this->createLink('story', 'view', "storyid=$task->storyID"), $task->storyTitle); + else echo $task->storyTitle; + } ?>