* adjust code for task #2869.
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
*Adjust minor!
|
||||
# Please enter the commit message for your changes. Lines starting
|
||||
# with '#' will be ignored, and an empty message aborts the commit.
|
||||
# On branch master
|
||||
# Your branch is up-to-date with 'origin/master'.
|
||||
#
|
||||
# Changes to be committed:
|
||||
# modified: action/lang/en.php
|
||||
# modified: build/lang/en.php
|
||||
# modified: common/lang/en.php
|
||||
# modified: datatable/lang/en.php
|
||||
# modified: doc/lang/en.php
|
||||
# modified: install/lang/en.php
|
||||
# modified: productplan/lang/en.php
|
||||
# modified: release/lang/en.php
|
||||
# modified: story/lang/en.php
|
||||
# modified: tree/lang/en.php
|
||||
#
|
||||
@@ -89,7 +89,7 @@
|
||||
<?php
|
||||
$class = "class='disabled'";
|
||||
$actionLink = $this->createLink('story', 'batchClose');
|
||||
$misc = ($canBatchClose and $type != 'closedBy') ? "onclick=\"setFormAction('$actionLink','hiddenwin')\"" : $class;
|
||||
$misc = ($canBatchClose and $type != 'closedBy') ? "onclick=\"setFormAction('$actionLink')\"" : $class;
|
||||
if($misc) echo "<li>" . html::a('javascript:;', $lang->close, '', $misc) . "</li>";
|
||||
|
||||
if(common::hasPriv('story', 'batchReview'))
|
||||
|
||||
@@ -773,6 +773,11 @@ class story extends control
|
||||
|
||||
/* Get edited stories. */
|
||||
$stories = $this->dao->select('*')->from(TABLE_STORY)->where('id')->in($storyIDList)->fetchAll('id');
|
||||
foreach($stories as $story)
|
||||
{
|
||||
if($story->status == 'closed') unset($stories[$story->id]);
|
||||
}
|
||||
if(empty($stories)) die(js::alert($this->lang->story->notice->closed) . js::locate($this->session->storyList, 'parent'));
|
||||
|
||||
/* The stories of a product. */
|
||||
if($productID)
|
||||
|
||||
@@ -290,3 +290,6 @@ $lang->story->placeholder->estimate = $lang->story->hour;
|
||||
|
||||
$lang->story->chosen = new stdClass();
|
||||
$lang->story->chosen->reviewedBy = 'Choose Reviewer';
|
||||
|
||||
$lang->story->notice = new stdClass();
|
||||
$lang->story->notice->closed = 'Stories you selected have already been closed!';
|
||||
|
||||
@@ -290,3 +290,6 @@ $lang->story->placeholder->estimate = $lang->story->hour;
|
||||
|
||||
$lang->story->chosen = new stdClass();
|
||||
$lang->story->chosen->reviewedBy = '选择评审人...';
|
||||
|
||||
$lang->story->notice = new stdClass();
|
||||
$lang->story->notice->closed = '您选择的需求已经被关闭了!';
|
||||
|
||||
@@ -30,39 +30,28 @@
|
||||
<th class='w-p40 '> <?php echo $lang->story->comment;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php foreach($storyIDList as $storyID):?>
|
||||
<?php foreach($stories as $storyID => $story):?>
|
||||
<tr class='text-center'>
|
||||
<td><?php echo $storyID . html::hidden("storyIDList[$storyID]", $storyID);?></td>
|
||||
<td class='text-left'><?php echo $stories[$storyID]->title;?></td>
|
||||
<td class='story-<?php echo $stories[$storyID]->status;?>'><?php echo $lang->story->statusList[$stories[$storyID]->status];?></td>
|
||||
|
||||
<?php if($stories[$storyID]->status != 'closed'):?>
|
||||
<td class='text-left'><?php echo $story->title;?></td>
|
||||
<td class='story-<?php echo $story->status;?>'><?php echo $lang->story->statusList[$story->status];?></td>
|
||||
<td>
|
||||
<?php if($stories[$storyID]->status == 'draft') unset($this->lang->story->reasonList['cancel']);?>
|
||||
<?php if($story->status == 'draft') unset($this->lang->story->reasonList['cancel']);?>
|
||||
<table class='w-p100'>
|
||||
<tr>
|
||||
<td class='pd-0'>
|
||||
<?php echo html::select("closedReasons[$storyID]", $lang->story->reasonList, 'done', "class=form-control onchange=setDuplicateAndChild(this.value,$storyID) style='min-width: 70px'");?>
|
||||
</td>
|
||||
<td class='pd-0' id='<?php echo 'duplicateStoryBox' . $storyID;?>' <?php if($stories[$storyID]->closedReason != 'duplicate') echo "style='display:none'";?>>
|
||||
<td class='pd-0' id='<?php echo 'duplicateStoryBox' . $storyID;?>' <?php if($story->closedReason != 'duplicate') echo "style='display:none'";?>>
|
||||
<?php echo html::input("duplicateStoryIDList[$storyID]", '', "class='form-control' placeholder='{$lang->idAB}' autocomplete='off'");?>
|
||||
</td>
|
||||
<td class='pd-0' id='<?php echo 'childStoryBox' . $storyID;?>' <?php if($stories[$storyID]->closedReason != 'subdivided') echo "style='display:none'";?>>
|
||||
<td class='pd-0' id='<?php echo 'childStoryBox' . $storyID;?>' <?php if($story->closedReason != 'subdivided') echo "style='display:none'";?>>
|
||||
<?php echo html::input("childStoriesIDList[$storyID]", '', "class='form-control' placeholder='{$lang->idAB}' autocomplete='off'");?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td><?php echo html::input("comments[$storyID]", '', "class='form-control' autocomplete='off'");?></td>
|
||||
<?php else:?>
|
||||
<td>
|
||||
<div class='text-left'>
|
||||
<?php echo html::select("closedReasons[$storyID]", $lang->story->reasonList, $stories[$storyID]->closedReason, 'disabled="disabled" class="form-control"');?>
|
||||
</div>
|
||||
</td>
|
||||
<td><?php echo html::input("comments[$storyID]", '', "class='form-control' disabled='disabled' autocomplete='off'");?></td>
|
||||
<?php endif;?>
|
||||
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<?php if(isset($suhosinInfo)):?>
|
||||
|
||||
Reference in New Issue
Block a user