* Fix bug for saving bug-batchCreate, and modify bugTao-checkBugsForBatchCreate to bugZen-checkBugsForBatchCreate.

This commit is contained in:
liumengyi
2023-05-26 15:48:39 +08:00
parent 067bf423c6
commit fb436a2df5
6 changed files with 45 additions and 187 deletions
+4
View File
@@ -702,6 +702,10 @@ class bug extends control
{
$bugs = $this->bugZen->buildBugsForBatchCreate($productID, $branch, $this->session->bugImagesFile);
/* Check bugs. */
$bugs = $this->bugZen->checkBugsForBatchCreate($bugs, $productID);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
/* Batch create bugs. */
$actions = $this->bug->batchCreate($bugs, $productID, $output, $this->post->uploadImage, $this->session->bugImagesFile);