* Fix bug #26832.
This commit is contained in:
@@ -10,3 +10,4 @@
|
||||
.table td.c-hours {padding-right: 12px;}
|
||||
.main-table tbody > tr.table-children > td:first-child::before {width: 3px;}
|
||||
@-moz-document url-prefix() {.main-table tbody > tr.table-children > td:first-child::before {width: 4px;};}
|
||||
.c-span {margin-left: 22px;}
|
||||
|
||||
@@ -76,6 +76,7 @@
|
||||
<?php
|
||||
$storyLink = $this->createLink('story', 'view', "id=$story->id");
|
||||
$canBeChanged = common::canBeChanged('story', $story);
|
||||
$spanClass = $canBatchAction ? 'c-span' : '';
|
||||
?>
|
||||
<tr>
|
||||
<td class="c-id">
|
||||
@@ -119,12 +120,7 @@
|
||||
<?php $class .= ($i + 1 == count($story->children)) ? ' table-child-bottom' : '';?>
|
||||
<tr class='table-children<?php echo $class;?> parent-<?php echo $story->id;?>' data-id='<?php echo $child->id?>' data-status='<?php echo $child->status?>' data-estimate='<?php echo $child->estimate?>'>
|
||||
<td class="c-id">
|
||||
<?php if($canBatchAction):?>
|
||||
<div class="checkbox-primary">
|
||||
<input type='checkbox' name='storyIdList[<?php echo $child->id;?>]' value='<?php echo $child->id;?>' />
|
||||
<label></label>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<span class="<?php echo $spanClass?>"></span>
|
||||
<?php printf('%03d', $child->id);?>
|
||||
</td>
|
||||
<td class='c-pri'><span class='label-pri <?php echo 'label-pri-' . $child->pri;?>' title='<?php echo zget($lang->story->priList, $child->pri, $child->pri);?>'><?php echo zget($lang->story->priList, $child->pri, $child->pri);?></span></td>
|
||||
@@ -185,7 +181,7 @@
|
||||
unset($lang->story->reviewResultList['revert']);
|
||||
foreach($lang->story->reviewResultList as $key => $result)
|
||||
{
|
||||
$actionLink = $this->createLink('story', 'batchReview', "result=$key");
|
||||
$actionLink = $this->createLink('story', 'batchReview', "result=$key&reason=&storyType=requirement");
|
||||
if($key == 'reject')
|
||||
{
|
||||
echo "<li class='dropdown-submenu'>";
|
||||
@@ -197,7 +193,7 @@
|
||||
|
||||
foreach($lang->story->reasonList as $key => $reason)
|
||||
{
|
||||
$actionLink = $this->createLink('story', 'batchReview', "result=reject&reason=$key");
|
||||
$actionLink = $this->createLink('story', 'batchReview', "result=reject&reason=$key&storyType=requirement");
|
||||
echo "<li>";
|
||||
echo html::a('#', $reason, '', "onclick=\"setFormAction('$actionLink', 'hiddenwin')\"");
|
||||
echo "</li>";
|
||||
@@ -218,7 +214,7 @@
|
||||
<button data-toggle="dropdown" type="button" class="btn"><?php echo $lang->story->assignedTo?> <span class="caret"></span></button>
|
||||
<?php
|
||||
$withSearch = count($users) > 10;
|
||||
$actionLink = $this->createLink('story', 'batchAssignTo');
|
||||
$actionLink = $this->createLink('story', 'batchAssignTo', 'storyType=requirement');
|
||||
echo html::select('assignedTo', $users, '', 'class="hidden"');
|
||||
if($withSearch)
|
||||
{
|
||||
|
||||
@@ -39,3 +39,4 @@ a.removeModule:hover {color: red;}
|
||||
#batchUnlinkStoryTip .table th:first-child {width: 460px;}
|
||||
#mainMenu .dropdown-menu>li>a>.icon {top: 4px;}
|
||||
#productStoryForm tbody tr td .label {max-width: 100px; text-overflow: unset;}
|
||||
.c-span {margin-left: 19px;}
|
||||
|
||||
@@ -4710,7 +4710,8 @@ class storyModel extends model
|
||||
switch($id)
|
||||
{
|
||||
case 'id':
|
||||
if($canBatchAction) echo html::checkbox('storyIdList', array($story->id => ''));
|
||||
if($canBatchAction and ($storyType == 'story' or ($storyType == 'requirement' and $story->type == 'requirement'))) echo html::checkbox('storyIdList', array($story->id => ''));
|
||||
if($canBatchAction and $storyType == 'requirement' and $story->type == 'story') echo "<span class='c-span'></span>";
|
||||
echo $canView ? html::a($storyLink, sprintf('%03d', $story->id), '', "data-app='$tab'") : sprintf('%03d', $story->id);
|
||||
break;
|
||||
case 'order':
|
||||
@@ -4735,7 +4736,7 @@ class storyModel extends model
|
||||
{
|
||||
$showBranch = isset($this->config->product->browse->showBranch) ? $this->config->product->browse->showBranch : 1;
|
||||
}
|
||||
if($storyType == 'requirement') echo '<span class="label label-badge label-light">SR</span> ';
|
||||
if($storyType == 'requirement' and $story->type == 'story') echo '<span class="label label-badge label-light">SR</span> ';
|
||||
if($story->parent > 0 and isset($story->parentName)) $story->title = "{$story->parentName} / {$story->title}";
|
||||
if(isset($branches[$story->branch]) and $showBranch and $this->config->vision == 'rnd') echo "<span class='label label-outline label-badge' title={$branches[$story->branch]}>{$branches[$story->branch]}</span> ";
|
||||
if($story->module and isset($modulePairs[$story->module])) echo "<span class='label label-gray label-badge'>{$modulePairs[$story->module]}</span> ";
|
||||
|
||||
Reference in New Issue
Block a user