liquid_feedback_frontend

diff app/main/suggestion/_list.lua @ 285:6c88b4bfb56c

Apply interest/support filter for member at member page
author bsw
date Fri Feb 17 15:16:02 2012 +0100 (2012-02-17)
parents b77e6a17ca77
children 1e7ce3fafc26
line diff
     1.1 --- a/app/main/suggestion/_list.lua	Fri Feb 17 15:14:50 2012 +0100
     1.2 +++ b/app/main/suggestion/_list.lua	Fri Feb 17 15:16:02 2012 +0100
     1.3 @@ -36,7 +36,7 @@
     1.4    {
     1.5      {
     1.6        name = "plus_unfulfilled",
     1.7 -      label = _"requested",
     1.8 +      label = _"most requested",
     1.9        selector_modifier = function(selector) selector:add_order_by("plus2_unfulfilled_count + plus1_unfulfilled_count DESC, id") end
    1.10      },
    1.11      {
    1.12 @@ -116,7 +116,7 @@
    1.13                  ui.container{
    1.14                    attr = { class = "suggestion_my_opinion" },
    1.15                    content = function()
    1.16 -                    local has_voting_right = app.session.member:has_voting_right_for_unit_id(initiative.issue.area.unit_id)
    1.17 +                    local has_voting_right = app.session.member and app.session.member:has_voting_right_for_unit_id(initiative.issue.area.unit_id)
    1.18                      if app.session.member_id and has_voting_right then
    1.19                        if initiative.issue.state == "voting" or initiative.issue.state == "closed" then
    1.20                          if degree == -2 then

Impressum / About Us