]> granicus.if.org Git - ejabberd/commitdiff
Fix 'get-pending' command form generation
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Tue, 16 Jul 2019 12:09:51 +0000 (15:09 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Tue, 16 Jul 2019 12:09:51 +0000 (15:09 +0300)
src/mod_pubsub.erl

index 706edc4192ab5e4e6068eee9b9dad1bf18f478d1..54ebdc7cfb1c140e338a01eee65ff8d19a6dd74d 100644 (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 ->