* fix score and child task bug

This commit is contained in:
滔哥
2017-11-03 00:27:58 +08:00
parent 06861184a2
commit 0dc610f36b
31 changed files with 161 additions and 55 deletions
+6 -2
View File
@@ -789,6 +789,7 @@ class bug extends control
$this->bug->sendmail($bugID, $actionID);
}
}
$this->loadModel('score')->create('ajax', 'batchOther');
die(js::locate($this->session->bugList, 'parent'));
}
@@ -815,6 +816,7 @@ class bug extends control
$this->action->logHistory($actionID, $changes);
$this->bug->sendmail($bugID, $actionID);
}
$this->loadModel('score')->create('ajax', 'batchOther');
}
if($type == 'product') die(js::locate($this->createLink('bug', 'browse', "productID=$projectID")));
if($type == 'my') die(js::locate($this->createLink('my', 'bug')));
@@ -872,6 +874,7 @@ class bug extends control
$actionID = $this->action->create('bug', $bugID, 'bugConfirmed');
$this->bug->sendmail($bugID, $actionID);
}
$this->loadModel('score')->create('ajax', 'batchOther');
die(js::locate($this->session->bugList, 'parent'));
}
@@ -952,6 +955,7 @@ class bug extends control
$actionID = $this->action->create('bug', $bugID, 'Resolved', '', $resolution);
$this->bug->sendmail($bugID, $actionID);
}
$this->loadModel('score')->create('ajax', 'batchOther');
die(js::locate($this->session->bugList, 'parent'));
}
@@ -1140,7 +1144,7 @@ class bug extends control
$actionID = $this->action->create('bug', $bugID, 'Closed');
$this->bug->sendmail($bugID, $actionID);
}
$this->loadModel('score')->create('ajax', 'batchOther');
if(isset($skipBugs)) echo js::alert(sprintf($this->lang->bug->skipClose, join(',', $skipBugs)));
}
die(js::reload('parent'));
@@ -1162,7 +1166,7 @@ class bug extends control
$actionID = $this->action->create('bug', $bugID, 'Activated', $bug['comment']);
$this->bug->sendmail($bugID, $actionID);
}
$this->loadModel('score')->create('ajax', 'batchOther');
die(js::locate($this->session->bugList, 'parent'));
}