liquid_feedback_frontend
diff app/main/initiative/show.lua @ 548:8af806af86a0
Added issue related preloading to issue show and initiative view
author | bsw |
---|---|
date | Tue May 29 20:45:58 2012 +0200 (2012-05-29) |
parents | 4cee33ad5e16 |
children | a53b4485a3d3 |
line diff
1.1 --- a/app/main/initiative/show.lua Tue May 29 20:43:27 2012 +0200 1.2 +++ b/app/main/initiative/show.lua Tue May 29 20:45:58 2012 +0200 1.3 @@ -1,12 +1,18 @@ 1.4 local initiative = Initiative:by_id(param.get_id()) 1.5 1.6 +local issue = initiative.issue 1.7 + 1.8 +if app.session.member_id then 1.9 + issue:load_everything_for_member_id(app.session.member_id) 1.10 +end 1.11 + 1.12 app.html_title.title = initiative.name 1.13 app.html_title.subtitle = _("Initiative ##{id}", { id = initiative.id }) 1.14 1.15 slot.select("head", function() 1.16 execute.view{ 1.17 module = "issue", view = "_head", 1.18 - params = { issue = initiative.issue, initiative = initiative } 1.19 + params = { issue = issue, initiative = initiative } 1.20 } 1.21 end) 1.22