From f919e8ffa6d911d083b606b6412146fedc4b51d9 Mon Sep 17 00:00:00 2001 From: Bostjan Skufca Date: Fri, 15 Apr 2016 02:22:19 +0200 Subject: [PATCH] Autocomplete: change type from 'contact' to 'person' to sync with what is expected from LDAP. Explanation: Alternative would be to leave type empty, as it is when contact comes form SQL source. But this feels overly ambiguous and may cause problems in the future. --- program/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/js/app.js b/program/js/app.js index df9717200..9a95feb31 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -5182,7 +5182,7 @@ function rcube_webmail() this.set_caret_pos(this.ksearch_input, p + insert.length); if (trigger) { - this.triggerEvent('autocomplete_insert', { field:this.ksearch_input, insert:insert, data:this.env.contacts[id], search:this.ksearch_value, result_type:'contact' }); + this.triggerEvent('autocomplete_insert', { field:this.ksearch_input, insert:insert, data:this.env.contacts[id], search:this.ksearch_value, result_type:'person' }); this.compose_type_activity++; } };