From ca01bf1a34db02a37d43b521017ab4808008aaef Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 20 May 2024 10:58:32 +0800 Subject: [PATCH] * Fix bug #49782. --- module/execution/ui/bug.html.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/execution/ui/bug.html.php b/module/execution/ui/bug.html.php index abc0cb6520..49355d870e 100644 --- a/module/execution/ui/bug.html.php +++ b/module/execution/ui/bug.html.php @@ -63,10 +63,11 @@ if($canBatchAssignTo) $assignedToItems = array(); foreach ($users as $account => $name) { - if($account != 'closed') $assignedToItems[] = array('text' => $name, 'innerClass' => 'batch-btn ajax-btn', 'data-url' => helper::createLink('bug', 'batchAssignTo', "assignedTo={$account}&objectID={$execution->id}")); + if(empty($account)) continue; + if($account != 'closed') $assignedToItems[] = array('text' => $name, 'innerClass' => 'batch-btn ajax-btn', 'data-url' => createLink('bug', 'batchAssignTo', "assignedTo={$account}&objectID={$execution->id}")); } - $footToolbar['items'][] = array('caret' => 'up', 'text' => $lang->bug->assignedTo, 'className' => 'btn btn-caret size-sm secondary', 'items' => $assignedToItems, 'type' => 'dropdown', 'data-placement' => 'top'); + $footToolbar['items'][] = array('caret' => 'up', 'text' => $lang->bug->assignedTo, 'className' => 'btn btn-caret size-sm secondary', 'items' => $assignedToItems, 'type' => 'dropdown', 'data-placement' => 'top', 'data-menu' => array('searchBox' => true)); } jsVar('+pageSummary', $summary);