diff --git a/api/js/etemplate/Et2Select/SearchMixin.ts b/api/js/etemplate/Et2Select/SearchMixin.ts index b4b0f921ac..8d145ae9a5 100644 --- a/api/js/etemplate/Et2Select/SearchMixin.ts +++ b/api/js/etemplate/Et2Select/SearchMixin.ts @@ -698,7 +698,11 @@ export const Et2WithSearchMixin = >(superclass * * This can be overridden to change request parameters or eg. send them as POST parameters. * - * Default implementation here sends options as (additional) GET paramters plus search string as $_GET['query']! + * Default implementation here sends search string and options: + * - as two parameters to the AJAX function + * - and (additional) as GET parameters plus search string as "query" + * + * This is done to support as well the old taglist callbacks, as the regular select ones! * * @param {string} search * @param {object} options @@ -707,7 +711,8 @@ export const Et2WithSearchMixin = >(superclass */ protected remoteQuery(search : string, options : object) { - return this.egw().request(this.egw().link(this.egw().ajaxUrl(this.searchUrl), {query: search, ...options})).then((result) => + return this.egw().request(this.egw().link(this.egw().ajaxUrl(this.searchUrl), + {query: search, ...options}), [search, options]).then((result) => { this.processRemoteResults(result); });