From 89542f78fb0dd9647df086c2209f2eb7dc063586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E9=87=91=E5=8B=87?= Date: Sun, 4 Jan 2026 16:17:32 +0800 Subject: [PATCH] * [apiv1] Fix bug#68157. --- api/v1/entries/bugs.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/v1/entries/bugs.php b/api/v1/entries/bugs.php index 20820e29fa..36a1f2d30b 100644 --- a/api/v1/entries/bugs.php +++ b/api/v1/entries/bugs.php @@ -66,8 +66,9 @@ class bugsEntry extends entry $control = $this->loadController('bug', 'create'); - $fields = 'title,project,execution,openedBuild,browser,os,assignedTo,pri,module,severity,type,story,task,mailto,keywords,steps,uid,deadline,plan,feedbackBy'; + $fields = 'title,project,execution,browser,branch,os,assignedTo,pri,module,severity,type,story,task,mailto,keywords,steps,uid,deadline,plan,feedbackBy'; $this->batchSetPost($fields); + $this->setPost('openedBuild', $this->request('openedBuild', ["trunk"])); $caseID = $this->request('case', 0); if($caseID)