liquid_feedback_frontend
diff app/main/delegation/_action/update.lua @ 293:a72a389399fc
Fixed to issues with modified delegation code
author | bsw |
---|---|
date | Sat Feb 25 20:36:31 2012 +0100 (2012-02-25) |
parents | b77e6a17ca77 |
children | d39fa6c0ff0b |
line diff
1.1 --- a/app/main/delegation/_action/update.lua Sat Feb 25 17:34:51 2012 +0100 1.2 +++ b/app/main/delegation/_action/update.lua Sat Feb 25 20:36:31 2012 +0100 1.3 @@ -12,6 +12,9 @@ 1.4 area_id = nil 1.5 end 1.6 1.7 +local delegation = Delegation:by_pk(truster_id, unit_id, area_id, issue_id) 1.8 + 1.9 + 1.10 if param.get("delete") or trustee_id == -1 then 1.11 1.12 if delegation then 1.13 @@ -47,8 +50,6 @@ 1.14 error("access denied") 1.15 end 1.16 1.17 - local delegation = Delegation:by_pk(truster_id, unit_id, area_id, issue_id) 1.18 - 1.19 if not delegation then 1.20 delegation = Delegation:new() 1.21 delegation.truster_id = truster_id