* Modify review code.
This commit is contained in:
@@ -1163,7 +1163,8 @@ class execution extends control
|
||||
|
||||
/* Get date list. */
|
||||
$executionInfo = $this->execution->getByID($executionID);
|
||||
$deadline = strpos('closed,suspended', $execution->status) === false ? helper::today() : ($execution->status == 'closed' ? substr($execution->closedDate, 0, 10) : $execution->suspendedDate);
|
||||
$deadline = $execution->status == 'closed' ? substr($execution->closedDate, 0, 10) : $execution->suspendedDate;
|
||||
$deadline = strpos('closed,suspended', $execution->status) === false ? helper::today() : $deadline;
|
||||
$endDate = strpos($type, 'withdelay') !== false ? $deadline : $executionInfo->end;
|
||||
list($dateList, $interval) = $this->execution->getDateList($executionInfo->begin, $endDate, $type, $interval, 'Y-m-d');
|
||||
$chartData = $this->execution->buildBurnData($executionID, $dateList, $type, $burnBy);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<?php
|
||||
$weekend = strpos($type, 'noweekend') !== false ? 'withweekend' : 'noweekend';
|
||||
$delay = strpos($type, 'withdelay') !== false ? 'nodelay' : 'withdelay';
|
||||
if(strpos('closed,suspended', $execution->status) === false)
|
||||
if(strpos('wait,doing', $execution->status) !== false)
|
||||
{
|
||||
common::printLink('execution', 'computeBurn', 'reload=yes', '<i class="icon icon-refresh"></i> ' . $lang->execution->computeBurn, 'hiddenwin', "title='{$lang->execution->computeBurn}' class='btn btn-primary' id='computeBurn'");
|
||||
echo '<div class="space"></div>';
|
||||
|
||||
Reference in New Issue
Block a user