Small fix on policy_change variables
This commit is contained in:
@ -64,15 +64,15 @@ function change_policy:initiate(result)
|
|||||||
self.org:delete_process(self.id)
|
self.org:delete_process(self.id)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
modpol.interactions.dropdown_query(
|
||||||
|
self.initiator, "Choose a policy to change:",
|
||||||
|
policy_list,
|
||||||
|
function(policy_choice)
|
||||||
local readable_value =
|
local readable_value =
|
||||||
tostring(modpol.modules[mod_choice][policy_choice])
|
tostring(modpol.modules[mod_choice][policy_choice])
|
||||||
if readable_value == "nil" then
|
if readable_value == "nil" then
|
||||||
readable_value = "none"
|
readable_value = "none"
|
||||||
end
|
end
|
||||||
modpol.interactions.dropdown_query(
|
|
||||||
self.initiator, "Choose a policy to change:",
|
|
||||||
policy_list,
|
|
||||||
function(policy_choice)
|
|
||||||
modpol.interactions.text_query(
|
modpol.interactions.text_query(
|
||||||
self.initiator,
|
self.initiator,
|
||||||
"Current " .. policy_choice .. " value: "
|
"Current " .. policy_choice .. " value: "
|
||||||
|
Reference in New Issue
Block a user