25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +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 ->
case get_pending_nodes(Host, Owner, Ps) of
{ok, Nodes} ->
Form = [{node, <<>>, lists:zip(Nodes, Nodes)}],
XForm = #xdata{type = form,
fields = pubsub_get_pending:encode(
[{node, Nodes}], Lang)},
fields = pubsub_get_pending:encode(Form, Lang)},
#adhoc_command{status = executing, action = execute,
xdata = XForm};
Err ->