liquid_feedback_frontend
changeset 1096:9604ba51624a
Fixed poll flag for initiatives
author | bsw |
---|---|
date | Tue Oct 21 17:56:59 2014 +0200 (2014-10-21) |
parents | b716804d1909 |
children | 34625fb8983c |
files | app/main/initiative/_action/create.lua app/main/initiative/new.lua |
line diff
1.1 --- a/app/main/initiative/_action/create.lua Mon Oct 20 12:55:16 2014 +0200 1.2 +++ b/app/main/initiative/_action/create.lua Tue Oct 21 17:56:59 2014 +0200 1.3 @@ -99,7 +99,7 @@ 1.4 end 1.5 1.6 local timing 1.7 -if policy.free_timeable then 1.8 +if not issue and policy.free_timeable then 1.9 local free_timing_string = util.trim(param.get("free_timing")) 1.10 if not free_timing_string or #free_timing_string < 1 then 1.11 slot.put_into("error", _"Choose timing")
2.1 --- a/app/main/initiative/new.lua Mon Oct 20 12:55:16 2014 +0200 2.2 +++ b/app/main/initiative/new.lua Tue Oct 21 17:56:59 2014 +0200 2.3 @@ -85,6 +85,7 @@ 2.4 ui.field.hidden{ name = "name", value = param.get("name") } 2.5 ui.field.hidden{ name = "draft", value = param.get("draft") } 2.6 ui.field.hidden{ name = "free_timing", value = param.get("free_timing") } 2.7 + ui.field.hidden{ name = "polling", value = param.get("polling", atom.boolean) } 2.8 local formatting_engine 2.9 if config.enforce_formatting_engine then 2.10 formatting_engine = config.enforce_formatting_engine