Autocomplete search: add id and source (addressbook) into resulting contact data array
Two reasons: - provide it to plugin backend functions that use 'contacts_autocomplete_after' hook - provide it to frontend Why to frontend? If plugin JS adds an 'autocomplete_insert' hook we need to provide it with exact autocomplete data. Providing it with name and email address only, without pinpointing exact origin of this autocomplete result, will severely limit learning capabilities of potential future autocomplete implementations.pull/6833/head
parent
802d119153
commit
6fb8da08f3
Loading…
Reference in New Issue