liquid_feedback_frontend
changeset 578:54dc90658990
Fix "forgotten" policy id while using preview for new issue
| author | bsw | 
|---|---|
| date | Wed Jun 20 08:07:39 2012 +0200 (2012-06-20) | 
| parents | fd41ff8d9563 | 
| children | a06634d17718 | 
| files | app/main/initiative/new.lua | 
   line diff
1.1 --- a/app/main/initiative/new.lua Wed Jun 20 00:24:36 2012 +0200 1.2 +++ b/app/main/initiative/new.lua Wed Jun 20 08:07:39 2012 +0200 1.3 @@ -42,7 +42,7 @@ 1.4 foreign_records = tmp, 1.5 foreign_id = "id", 1.6 foreign_name = "name", 1.7 - value = area.default_policy and area.default_policy.id or param.get("policy_id", atom.integer) 1.8 + value = param.get("policy_id", atom.integer) or area.default_policy and area.default_policy.id 1.9 } 1.10 ui.tag{ 1.11 tag = "div",