liquid_feedback_frontend

diff model/delegation.lua @ 217:73dbc9e2bfd4

Cummulative patch for enhancements at next generation frontend
author bsw
date Sat Mar 12 19:22:50 2011 +0100 (2011-03-12)
parents 3bfb2fcf7ab9
children
line diff
     1.1 --- a/model/delegation.lua	Mon Mar 07 12:15:22 2011 +0100
     1.2 +++ b/model/delegation.lua	Sat Mar 12 19:22:50 2011 +0100
     1.3 @@ -33,9 +33,14 @@
     1.4    ref           = 'issue',
     1.5  }
     1.6  
     1.7 -function Delegation:by_pk(truster_id, area_id, issue_id)
     1.8 +function Delegation:by_pk(truster_id, unit_id, area_id, issue_id)
     1.9    local selector = self:new_selector():optional_object_mode()
    1.10    selector:add_where{ "truster_id = ?", truster_id }
    1.11 +  if unit_id then
    1.12 +    selector:add_where{ "unit_id = ?",    unit_id }
    1.13 +  else
    1.14 +    selector:add_where("unit_id ISNULL")
    1.15 +  end
    1.16    if area_id then
    1.17      selector:add_where{ "area_id = ?",    area_id }
    1.18    else

Impressum / About Us