From 1d2c6ee0f6ff0126b8d2b4b590b136d6a7baee9c Mon Sep 17 00:00:00 2001 From: tianshujie Date: Sun, 29 Jan 2023 16:46:56 +0800 Subject: [PATCH] * Fix bug #27999. --- module/bug/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/bug/model.php b/module/bug/model.php index e66901ea90..89d71c2aef 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -1184,6 +1184,8 @@ class bugModel extends model $buildData->builder = $this->app->user->account; $buildData->createdBy = $this->app->user->account; $buildData->createdDate = helper::now(); + + $this->lang->build->name = $this->lang->bug->placeholder->newBuildName; $this->dao->insert(TABLE_BUILD)->data($buildData)->autoCheck() ->check('name', 'unique', "product = {$buildData->product} AND branch = {$buildData->branch} AND deleted = '0'") ->exec();