From 2bf5424cb07772198db4bc402aeac823a41c760f Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 30 Jul 2019 11:09:44 +0800 Subject: [PATCH] * Use function processStatus to get status of a record. --- module/story/view/affected.html.php | 12 +++--------- module/story/view/batchclose.html.php | 2 +- module/story/view/batchedit.html.php | 2 +- module/story/view/bugs.html.php | 16 ++++++++-------- module/story/view/cases.html.php | 2 +- module/story/view/edit.html.php | 2 +- module/story/view/linkstory.html.php | 2 +- module/story/view/tasks.html.php | 2 +- module/story/view/view.html.php | 2 +- module/story/view/zerocase.html.php | 2 +- 10 files changed, 19 insertions(+), 25 deletions(-) diff --git a/module/story/view/affected.html.php b/module/story/view/affected.html.php index ac2bfffd4a..e435960383 100644 --- a/module/story/view/affected.html.php +++ b/module/story/view/affected.html.php @@ -27,9 +27,7 @@ createLink('task', 'view', "taskID=$task->id"), $task->name, '_blank');?> assignedTo];?> - - task->statusList[$task->status];?> - + processStatus('task', $task);?> consumed;?> left;?> @@ -59,9 +57,7 @@ id;?> createLink('bug', 'view', "bugID=$bug->id"), $bug->title, '_blank');?> - - bug->statusList[$bug->status];?> - + processStatus('bug', $bug);?> openedBy];?> resolvedBy];?> @@ -89,9 +85,7 @@ id;?> createLink('testcase', 'view', "caseID=$case->id"), $case->title, '_blank');?> - - testcase->statusList[$case->status];?> - + processStatus('testcase', $case);?> openedBy];?> lastEditedBy];?> diff --git a/module/story/view/batchclose.html.php b/module/story/view/batchclose.html.php index 830428c0ea..fe1e78cbcb 100755 --- a/module/story/view/batchclose.html.php +++ b/module/story/view/batchclose.html.php @@ -33,7 +33,7 @@ title;?> - story->statusList[$story->status];?> + processStatus('story', $story);?> status == 'draft') unset($this->lang->story->reasonList['cancel']);?> diff --git a/module/story/view/batchedit.html.php b/module/story/view/batchedit.html.php index 23ea9e8ec1..fbfe7739f5 100644 --- a/module/story/view/batchedit.html.php +++ b/module/story/view/batchedit.html.php @@ -119,7 +119,7 @@ foreach(explode(',', $showFields) as $field) - + diff --git a/module/story/view/bugs.html.php b/module/story/view/bugs.html.php index 2ee49e27eb..191b3204b4 100644 --- a/module/story/view/bugs.html.php +++ b/module/story/view/bugs.html.php @@ -10,14 +10,14 @@
>pri, 'class=form-control');?> '>assignedTo, "class='form-control chosen'");?> >source, 'class=form-control');?>story->statusList[$story->status];?>processStatus('story', $story);?> >stage, 'class="form-control"' . ($story->status == 'draft' ? ' disabled="disabled"' : ''));?> '>closedBy, "class='form-control" . ($story->status == 'closed' ? " chosen'" : "' disabled='disabled'"));?>
- - - - + + + + - - - + + + @@ -27,7 +27,7 @@ - + diff --git a/module/story/view/cases.html.php b/module/story/view/cases.html.php index 587304e73b..0eab738ec6 100644 --- a/module/story/view/cases.html.php +++ b/module/story/view/cases.html.php @@ -27,7 +27,7 @@ - + diff --git a/module/story/view/edit.html.php b/module/story/view/edit.html.php index 3fb5903ee9..019515db8b 100644 --- a/module/story/view/edit.html.php +++ b/module/story/view/edit.html.php @@ -123,7 +123,7 @@ - + status != 'draft'):?> diff --git a/module/story/view/linkstory.html.php b/module/story/view/linkstory.html.php index e25a41dd4a..799b6e8c6f 100644 --- a/module/story/view/linkstory.html.php +++ b/module/story/view/linkstory.html.php @@ -61,7 +61,7 @@ - + diff --git a/module/story/view/tasks.html.php b/module/story/view/tasks.html.php index bf6632eac2..08ba9c6051 100644 --- a/module/story/view/tasks.html.php +++ b/module/story/view/tasks.html.php @@ -30,7 +30,7 @@ include '../../common/view/chart.html.php'; - + diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php index aa10740f5f..b2e5f9fbb6 100644 --- a/module/story/view/view.html.php +++ b/module/story/view/view.html.php @@ -195,7 +195,7 @@ - + diff --git a/module/story/view/zerocase.html.php b/module/story/view/zerocase.html.php index 8039ed1cb5..834f25efdb 100644 --- a/module/story/view/zerocase.html.php +++ b/module/story/view/zerocase.html.php @@ -63,7 +63,7 @@ - +
idAB;?> bug->title;?> priAB;?> bug->type;?>idAB;?> bug->title;?> priAB;?>bug->type;?> statusAB;?> bug->assignedTo;?> bug->resolvedBy;?> bug->resolution;?>bug->assignedTo;?>bug->resolvedBy;?>bug->resolution;?>
title;?> bug->priList, $bug->pri, $bug->pri)?>'>pri == '0' ? '' : zget($lang->bug->priList, $bug->pri, $bug->pri);?> bug->typeList[$bug->type];?>bug->statusList[$bug->status];?>processStatus('bug',$bug);?> assignedTo, $bug->assignedTo);?> resolvedBy, $bug->resolvedBy);?> bug->resolutionList[$bug->resolution];?>title;?> testcase->priList, $case->pri, $case->pri)?>'>pri == '0' ? '' : zget($lang->case->priList, $case->pri, $case->pri);?> testcase->typeList[$case->type];?>testcase->statusList[$case->status];?>processStatus('testcase', $case);?> lastRunner, $case->lastRunner);?> lastRunDate)) echo date(DT_MONTHTIME1, strtotime($case->lastRunDate));?> lastRunResult ? $lang->testcase->resultList[$case->lastRunResult] : '';?>
story->status;?>story->statusList[$story->status];?>processStatus('story', $story);?>
createLink('product', 'browse', "productID=$story2Link->product&branch=$story2Link->branch"), $products[$story2Link->product], '_blank');?> title, '_blank');?> planTitle;?>story->statusList, $story2Link->status);?>processStatus('story', $story2Link);?> story->stageList, $story2Link->stage);?> openedBy);?> estimate;?>id;?> name;?> task->priList, $task->pri, $task->pri)?>'>pri == '0' ? '' : zget($lang->task->priList, $task->pri, $task->pri);?>task->statusList[$task->status];?>processStatus('task', $task);?> assignedTo, $task->assignedTo);?> estimate;?> consumed;?>
story->status;?> story->statusList[$story->status];?> processStatus('story', $story);?>
story->stage;?>openedBy];?> assignedTo];?> estimate;?>story->statusList, $story->status);?>processStatus('story', $story);?> story->stageList, $story->stage);?>