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);