From a3a8d962fc3c9a07d84a7a4c9063c38bea0235fd Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 5 Nov 2019 20:02:08 +0100 Subject: [PATCH] gluon-web-node-role: fix node role list Fixes: 4249d65af73e ("treewide: fix luacheck warnings") Closes: #1851 --- .../luasrc/lib/gluon/config-mode/model/admin/noderole.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-web-node-role/luasrc/lib/gluon/config-mode/model/admin/noderole.lua b/package/gluon-web-node-role/luasrc/lib/gluon/config-mode/model/admin/noderole.lua index 9d610663..9447a939 100644 --- a/package/gluon-web-node-role/luasrc/lib/gluon/config-mode/model/admin/noderole.lua +++ b/package/gluon-web-node-role/luasrc/lib/gluon/config-mode/model/admin/noderole.lua @@ -18,7 +18,7 @@ s = f:section(Section, nil, translate( o = s:option(ListValue, "role", translate("Role")) o.default = role for _, role_value in ipairs(site.roles.list()) do - o:value(role, site_i18n.translate('gluon-web-node-role:role:' .. role_value)) + o:value(role_value, site_i18n.translate('gluon-web-node-role:role:' .. role_value)) end function o:write(data)