liquid_feedback_frontend

diff app/main/issue/_show_head.lua @ 111:bf885faf3452

add initiator support in delegation

if a delegation is issued from the initiative view, the initiators
from that one are added to the delegation target list. this makes it easier to delegate to the author without the need to add him to the contact list.
author Daniel Poelzleithner <poelzi@poelzi.org>
date Mon Sep 20 20:32:04 2010 +0200 (2010-09-20)
parents 7bc629bc1c20
children 4fb486bce608
line diff
     1.1 --- a/app/main/issue/_show_head.lua	Sun Sep 19 04:56:11 2010 +0200
     1.2 +++ b/app/main/issue/_show_head.lua	Mon Sep 20 20:32:04 2010 +0200
     1.3 @@ -1,4 +1,5 @@
     1.4  local issue = param.get("issue", "table")
     1.5 +local initiative = param.get("initiative", "table")
     1.6  
     1.7  local direct_voter
     1.8  
     1.9 @@ -68,7 +69,8 @@
    1.10        execute.view{
    1.11          module = "delegation",
    1.12          view = "_show_box",
    1.13 -        params = { issue_id = issue.id }
    1.14 +        params = { issue_id = issue.id,
    1.15 +                   initiative_id = initiative and initiative.id or nil}
    1.16        }
    1.17      end
    1.18  

Impressum / About Us