sprint_60477

This commit is contained in:
sunjun
2022-07-13 01:38:10 +00:00
parent e8dc136b0e
commit b905ccead6
3 changed files with 10 additions and 4 deletions
+8 -2
View File
@@ -2022,12 +2022,14 @@ class bug extends control
/**
* Batch close bugs.
*
* @param int $releaseID
* @param string $viewType
* @access public
* @return void
*/
public function batchClose()
public function batchClose($releaseID = '', $viewType = '')
{
if($this->post->unlinkBugs) $this->post->bugIDList = $this->post->unlinkBugs;
if($releaseID) $this->post->bugIDList = $this->post->unlinkBugs;
if($this->post->bugIDList)
{
$bugIDList = $this->post->bugIDList;
@@ -2052,6 +2054,10 @@ class bug extends control
}
$this->loadModel('score')->create('ajax', 'batchOther');
if(isset($skipBugs)) echo js::alert(sprintf($this->lang->bug->skipClose, join(',', $skipBugs)));
if($viewType)
{
return print(js::locate($this->createLink($viewType, 'view', "releaseID=$releaseID&type=bug"), 'parent'));
}
}
return print(js::reload('parent'));
}
+1 -1
View File
@@ -220,7 +220,7 @@
}
if($canBatchClose and $canBeChanged)
{
$closeURL = $this->createLink('bug', 'batchClose');
$closeURL = $this->createLink('bug', 'batchClose', "releaseID=$release->id&viewType=projectrelease");
echo html::a("###", $lang->story->batchClose, '', "onclick='setFormAction(\"$closeURL\", \"hiddenwin\", this)' class='btn'");
}
?>
+1 -1
View File
@@ -222,7 +222,7 @@
}
if($canBatchClose)
{
$closeURL = $this->createLink('bug', 'batchClose');
$closeURL = $this->createLink('bug', 'batchClose', "release=$release->id&viewType=release");
echo html::a("###", $lang->story->batchClose, '', "onclick='setFormAction(\"$closeURL\", \"hiddenwin\", this)' class='btn'");
}
?>