From ec0e4aa9c1fea1ab1d3474ff57c2f35766fcae7d Mon Sep 17 00:00:00 2001 From: Nathan Schneider Date: Tue, 23 Aug 2022 17:11:00 -0600 Subject: [PATCH] Small fix on policy_change variables --- modpol_core/modules/change_policy.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modpol_core/modules/change_policy.lua b/modpol_core/modules/change_policy.lua index 6fb8b1b..f87ac22 100644 --- a/modpol_core/modules/change_policy.lua +++ b/modpol_core/modules/change_policy.lua @@ -64,15 +64,15 @@ function change_policy:initiate(result) self.org:delete_process(self.id) return end - local readable_value = - tostring(modpol.modules[mod_choice][policy_choice]) - if readable_value == "nil" then - readable_value = "none" - end modpol.interactions.dropdown_query( self.initiator, "Choose a policy to change:", policy_list, function(policy_choice) + local readable_value = + tostring(modpol.modules[mod_choice][policy_choice]) + if readable_value == "nil" then + readable_value = "none" + end modpol.interactions.text_query( self.initiator, "Current " .. policy_choice .. " value: "