* if the task no story, don't output the story link.

This commit is contained in:
wangchunsheng
2009-10-28 01:41:20 +00:00
parent da65900cd8
commit 6dbcfcd27c

View File

@@ -88,8 +88,11 @@ function selectProject(projectID)
<td class=<?php echo $task->status;?> ><?php echo $lang->task->statusList->{$task->status};?></td>
<td class='a-left'>
<?php
if(common::hasPriv('story', 'view')) echo html::a($this->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;
}
?>
</td>
<td>