Fixed interaction glitch on privs_to_org

This commit is contained in:
Nathan Schneider 2021-12-20 19:05:03 -07:00
parent 046fad7f57
commit 18d63485c2
2 changed files with 2 additions and 2 deletions

View File

@ -31,6 +31,7 @@ function priv_to_org:initiate(result)
"Which privilege do you want to share with members of "..self.org.name.."?",
player_privs_table,
function(input)
modpol.interactions.org_dashboard(self.initiator,self.org.id)
for i,member in ipairs(self.org.members) do
local member_privs = minetest.get_player_privs(member)
member_privs[input] = true

View File

@ -323,8 +323,7 @@ minetest.register_on_player_receive_fields(function (player, formname, fields)
if not choice then
-- empty, do nothing
elseif func then
--not sure if we should close
--breaks sequential dropdown_queries:
--causes issues with sequential dropdowns
--minetest.close_formspec(pname, formname)
func(choice)
else