mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Etemplate - Make sure to not return an empty string, it will fail when queried
This commit is contained in:
parent
06e41356bd
commit
df4f4deb1f
@ -479,6 +479,12 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR
|
||||
}
|
||||
this._query_server = false;
|
||||
|
||||
// Make sure we don't give an empty string, that fails when we try to query
|
||||
if(return_value == this.options.autocomplete_url && !return_value)
|
||||
{
|
||||
return_value = [];
|
||||
}
|
||||
|
||||
// Turn on local filtering, or trust server to do it
|
||||
cfg.mode = typeof return_value === 'string' ? 'remote' : 'local';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user