25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix 'get-pending' command form generation

This commit is contained in:
Evgeny Khramtsov 2019-07-16 15:09:51 +03:00
parent 5ecbed5eae
commit f10de6439b

View File

@ -1284,9 +1284,9 @@ send_pending_node_form(Host, Owner, Lang, Plugins) ->
Ps -> Ps ->
case get_pending_nodes(Host, Owner, Ps) of case get_pending_nodes(Host, Owner, Ps) of
{ok, Nodes} -> {ok, Nodes} ->
Form = [{node, <<>>, lists:zip(Nodes, Nodes)}],
XForm = #xdata{type = form, XForm = #xdata{type = form,
fields = pubsub_get_pending:encode( fields = pubsub_get_pending:encode(Form, Lang)},
[{node, Nodes}], Lang)},
#adhoc_command{status = executing, action = execute, #adhoc_command{status = executing, action = execute,
xdata = XForm}; xdata = XForm};
Err -> Err ->