From: Badlop Date: Tue, 24 Jul 2018 18:01:22 +0000 (+0200) Subject: Fix search for User in vjud X-Git-Tag: 18.09~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1be21126342d503205798605725ba5ceef9de42b;p=ejabberd Fix search for User in vjud See https://stackoverflow.com/questions/51478247/ejabberd-search-module-failed-to-handle-the-query --- diff --git a/src/mod_vcard_mnesia.erl b/src/mod_vcard_mnesia.erl index f7e2872aa..af361dbb3 100644 --- a/src/mod_vcard_mnesia.erl +++ b/src/mod_vcard_mnesia.erl @@ -192,7 +192,7 @@ filter_fields([{SVar, [Val]} | Ds], Match, LServer) LVal = mod_vcard:string2lower(Val), NewMatch = case SVar of <<"user">> -> - case gen_mod:get_module_opt(LServer, ?MODULE, + case gen_mod:get_module_opt(LServer, mod_vcard, search_all_hosts) of true -> Match#vcard_search{luser = make_val(LVal)}; false ->