From 98a85163bd8aefae009ceea3fd52b95753acf6d8 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 18 Apr 2024 15:26:06 +0800 Subject: [PATCH] * Fix bug #48050. --- module/bug/ui/batchcreate.html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/bug/ui/batchcreate.html.php b/module/bug/ui/batchcreate.html.php index 2a5761fe9f..f716093f0f 100644 --- a/module/bug/ui/batchcreate.html.php +++ b/module/bug/ui/batchcreate.html.php @@ -48,7 +48,7 @@ $items[] = array('name' => 'module', 'label' => $lang->bug->module, 'control' => $items[] = array('name' => 'project', 'label' => $lang->bug->project, 'control' => 'picker', 'items' => $projects, 'value' => $projectID, 'width' => '200px', 'required' => isset($requiredFields['project']), 'ditto' => true); /* Field of execution. */ -if(!empty($project->multiple)) $items[] = array +$items[] = array ( 'name' => 'execution', 'label' => isset($project->model) && $project->model == 'kanban' ? $lang->bug->kanban : $lang->bug->execution, @@ -57,6 +57,7 @@ if(!empty($project->multiple)) $items[] = array 'value' => $executionID, 'width' => '200px', 'required' => isset($requiredFields['execution']), + 'hidden' => !empty($project) && empty($project->multiple), 'ditto' => true );