Skip to content
Snippets Groups Projects
Commit 19a0d539 authored by Thomas Oster's avatar Thomas Oster
Browse files

Properly initialize array. Fixes #2593

parent ecf69312
No related branches found
No related tags found
No related merge requests found
...@@ -152,6 +152,7 @@ class SearchAjaxAPI extends AjaxController { ...@@ -152,6 +152,7 @@ class SearchAjaxAPI extends AjaxController {
// User information // User information
$matches = array( $matches = array(
__('Ticket Built-In') => SavedSearch::getExtendedTicketFields(), __('Ticket Built-In') => SavedSearch::getExtendedTicketFields(),
__('Custom Forms') => array()
); );
foreach (array('ticket'=>'TicketForm', 'user'=>'UserForm', 'organization'=>'OrganizationForm') as $k=>$F) { foreach (array('ticket'=>'TicketForm', 'user'=>'UserForm', 'organization'=>'OrganizationForm') as $k=>$F) {
$form = $F::objects()->one(); $form = $F::objects()->one();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment