From 313032128dfbc6fcf4f491391b69d6a411c5ef73 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 9 Feb 2017 14:34:50 +0800 Subject: [PATCH] * change for task #2887. --- module/bug/model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/bug/model.php b/module/bug/model.php index 435a5a7496..42e0671341 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -723,7 +723,9 @@ class bugModel extends model ->check('name', 'unique', "product = {$buildData->product} AND branch = {$buildData->branch} AND deleted = '0'") ->exec(); if(dao::isError()) return false; - $bug->resolvedBuild = $this->dao->lastInsertID(); + $buildID = $this->dao->lastInsertID(); + $this->loadModel('action')->create('build', $buildID, 'opened'); + $bug->resolvedBuild = $buildID; } unset($bug->buildName); unset($bug->createBuild);