* Batch modify the judgment of the branch to which the bug belongs.

This commit is contained in:
tianshujie
2021-11-18 13:49:04 +08:00
parent 79fa075854
commit 5e473398be
4 changed files with 32 additions and 6 deletions
+2 -3
View File
@@ -1043,18 +1043,17 @@ class bugModel extends model
*
* @param array $bugIDList
* @param int $branchID
* @param array $oldBugs
* @access public
* @return array
*/
public function batchChangeBranch($bugIDList, $branchID)
public function batchChangeBranch($bugIDList, $branchID, $oldBugs)
{
$now = helper::now();
$allChanges = array();
$oldBugs = $this->getByList($bugIDList);
foreach($bugIDList as $bugID)
{
$oldBug = $oldBugs[$bugID];
if($branchID == $oldBug->branch) continue;
$bug = new stdclass();
$bug->lastEditedBy = $this->app->user->account;