* fix a bug: if delete a story/task/testcase actionLinks can't show.

This commit is contained in:
chencongzhi520@gmail.com
2012-09-19 05:56:40 +00:00
parent e47263a926
commit 91cec4ea8e
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -15,7 +15,8 @@
<div id='main' <?php if($story->deleted) echo "class='deleted'";?>>STORY #<?php echo $story->id . ' ' . $story->title;?></div>
<div>
<?php
$browseLink = $app->session->storyList != false ? $app->session->storyList : $this->createLink('product', 'browse', "productID=$story->product&moduleID=$story->module");
$browseLink = $app->session->storyList != false ? $app->session->storyList : $this->createLink('product', 'browse', "productID=$story->product&moduleID=$story->module");
$actionLinks = '';
if(!$story->deleted)
{
ob_start();
+2 -1
View File
@@ -19,7 +19,8 @@
<?php endif;?>
<div>
<?php
$browseLink = $app->session->taskList != false ? $app->session->taskList : $this->createLink('project', 'browse', "projectID=$task->project");
$browseLink = $app->session->taskList != false ? $app->session->taskList : $this->createLink('project', 'browse', "projectID=$task->project");
$actionLinks = '';
if(!$task->deleted)
{
ob_start();
+2 -1
View File
@@ -16,7 +16,8 @@
<div id='main'>CASE #<?php echo $case->id . ' ' . $case->title;?></div>
<div>
<?php
$browseLink = $app->session->caseList != false ? $app->session->caseList : $this->createLink('testcase', 'browse', "productID=$case->product");
$browseLink = $app->session->caseList != false ? $app->session->caseList : $this->createLink('testcase', 'browse', "productID=$case->product");
$actionLinks = '';
if(!$case->deleted)
{
ob_start();