mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
parent
30c3000e87
commit
12ab9b72a1
@ -228,13 +228,17 @@ function send_template()
|
||||
$attrs['editModeEnabled'] = 'true';
|
||||
}
|
||||
}
|
||||
$attrs['searchUrl'] = $attrs['autocomplete_url'] ?? 'EGroupware\\Api\\Etemplate\\Widget\\Taglist::ajax_search';
|
||||
if (isset($attrs['autocomplete_params']))
|
||||
if(isset($attrs['autocomplete_url']))
|
||||
{
|
||||
$attrs['searchUrl'] = $attrs['autocomplete_url'];
|
||||
}
|
||||
|
||||
if(isset($attrs['autocomplete_params']))
|
||||
{
|
||||
$attrs['searchOptions'] = $attrs['autocomplete_params'];
|
||||
}
|
||||
unset($attrs['autocomplete_url'], $attrs['autocomplete_params']);
|
||||
if (isset($attrs['maxSelection']) && $attrs['maxSelection'] === '1')
|
||||
if(isset($attrs['maxSelection']) && $attrs['maxSelection'] === '1')
|
||||
{
|
||||
unset($attrs['multiple'], $attrs['maxSelection']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user