mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
mod_server_contact_info: Sort form fields to please scansion
The unstable hash table order caused the tests to fail and I don't know how to tell scansion to ignore the order.
This commit is contained in:
parent
0987a0113d
commit
b438a292e9
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
--
|
||||
|
||||
local array = require "prosody.util.array";
|
||||
local it = require "prosody.util.iterators";
|
||||
local jid = require "prosody.util.jid";
|
||||
local url = require "socket.url";
|
||||
|
||||
|
@ -32,7 +33,7 @@ local contact_config = module:get_option("contact_info", {
|
|||
|
||||
local fields = {};
|
||||
|
||||
for key, field_var in pairs(address_types) do
|
||||
for key, field_var in it.sorted_pairs(address_types) do
|
||||
if contact_config[key] then
|
||||
table.insert(fields, {
|
||||
type = "list-multi";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue