mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +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,11 +234,16 @@ function send_template()
|
|||||||
$attrs['editModeEnabled'] = 'true';
|
$attrs['editModeEnabled'] = 'true';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$attrs['searchUrl'] = $attrs['autocomplete_url'] ?? 'EGroupware\\Api\\Etemplate\\Widget\\Taglist::'.
|
// only set (default) searchUrl for regular taglist or taglist-email, or if a non-empty autocomplete_url was given
|
||||||
($matches[2] === '-email' ? 'ajax_email' : 'ajax_search');
|
if (empty($matches['2']) || $matches[2] === '-email' || !empty($attrs['autocomplete_url']))
|
||||||
if (isset($attrs['autocomplete_params']))
|
|
||||||
{
|
{
|
||||||
$attrs['searchOptions'] = $attrs['autocomplete_params'];
|
$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']);
|
unset($attrs['autocomplete_url'], $attrs['autocomplete_params']);
|
||||||
if (isset($attrs['maxSelection']) && $attrs['maxSelection'] === '1')
|
if (isset($attrs['maxSelection']) && $attrs['maxSelection'] === '1')
|
||||||
|
Loading…
Reference in New Issue
Block a user