set correct default search-url for taglist-email

This commit is contained in:
ralf 2022-09-17 09:50:57 +02:00
parent 1deeee207f
commit a9f8e6fcd5

View File

@ -228,11 +228,8 @@ function send_template()
$attrs['editModeEnabled'] = 'true';
}
}
if(isset($attrs['autocomplete_url']))
{
$attrs['searchUrl'] = $attrs['autocomplete_url'];
}
$attrs['searchUrl'] = $attrs['autocomplete_url'] ?? 'EGroupware\\Api\\Etemplate\\Widget\\Taglist::'.
($matches[2] === '-email' ? 'ajax_email' : 'ajax_search');
if (isset($attrs['autocomplete_params']))
{
$attrs['searchOptions'] = $attrs['autocomplete_params'];