forked from extern/egroupware
parent
30c3000e87
commit
12ab9b72a1
@ -228,13 +228,17 @@ function send_template()
|
|||||||
$attrs['editModeEnabled'] = 'true';
|
$attrs['editModeEnabled'] = 'true';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$attrs['searchUrl'] = $attrs['autocomplete_url'] ?? 'EGroupware\\Api\\Etemplate\\Widget\\Taglist::ajax_search';
|
if(isset($attrs['autocomplete_url']))
|
||||||
if (isset($attrs['autocomplete_params']))
|
{
|
||||||
|
$attrs['searchUrl'] = $attrs['autocomplete_url'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if(isset($attrs['autocomplete_params']))
|
||||||
{
|
{
|
||||||
$attrs['searchOptions'] = $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')
|
||||||
{
|
{
|
||||||
unset($attrs['multiple'], $attrs['maxSelection']);
|
unset($attrs['multiple'], $attrs['maxSelection']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user