mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
only set (default) searchUrl for regular taglist or taglist-email, or if a non-empty autocomplete_url was given
This commit is contained in:
parent
1d50c1ca91
commit
d8e54c72c8
@ -234,12 +234,17 @@ function send_template()
|
||||
$attrs['editModeEnabled'] = 'true';
|
||||
}
|
||||
}
|
||||
// only set (default) searchUrl for regular taglist or taglist-email, or if a non-empty autocomplete_url was given
|
||||
if (empty($matches['2']) || $matches[2] === '-email' || !empty($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'];
|
||||
}
|
||||
}
|
||||
unset($attrs['autocomplete_url'], $attrs['autocomplete_params']);
|
||||
if (isset($attrs['maxSelection']) && $attrs['maxSelection'] === '1')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user