# HG changeset patch # User bsw # Date 1427119861 -3600 # Node ID 9fed7af9263fdd97c1c48ab8368bc716369d02fc # Parent 91089defc3eac6ac300b821e63c7a652124078b5 Fixed usage of global variable diff -r 91089defc3ea -r 9fed7af9263f app/main/initiative/new.lua --- a/app/main/initiative/new.lua Sun Mar 22 22:59:17 2015 +0100 +++ b/app/main/initiative/new.lua Mon Mar 23 15:11:01 2015 +0100 @@ -155,7 +155,7 @@ slot.put("
") end if not issue_id then - tmp = { { id = -1, name = "" } } + local tmp = { { id = -1, name = "" } } for i, allowed_policy in ipairs(area.allowed_policies) do if not allowed_policy.polling or app.session.member:has_polling_right_for_unit_id(area.unit_id) then tmp[#tmp+1] = allowed_policy