liquid_feedback_frontend

changeset 293:a72a389399fc

Fixed to issues with modified delegation code
author bsw
date Sat Feb 25 20:36:31 2012 +0100 (2012-02-25)
parents 44f9a09ea51c
children fee2fcc5d88e
files app/main/delegation/_action/update.lua app/main/delegation/new.lua
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
     2.1 --- a/app/main/delegation/new.lua	Sat Feb 25 17:34:51 2012 +0100
     2.2 +++ b/app/main/delegation/new.lua	Sat Feb 25 20:36:31 2012 +0100
     2.3 @@ -103,7 +103,7 @@
     2.4        end
     2.5        records = {
     2.6          { id = -1, name = text_apply },
     2.7 -        { id = 0,  name = text_abandom }
     2.8 +        { id = 0,  name = text_abandon }
     2.9        }
    2.10      elseif area then
    2.11        local delegate_name = ""

Impressum / About Us