liquid_feedback_frontend

changeset 881:23e12fe721d4

Fix in voting comment form
author bsw
date Mon Aug 20 01:20:09 2012 +0200 (2012-08-20)
parents fe39c1fb541b
children 1c70e9ea07ad
files app/main/vote/list.lua
line diff
     1.1 --- a/app/main/vote/list.lua	Mon Aug 20 01:06:20 2012 +0200
     1.2 +++ b/app/main/vote/list.lua	Mon Aug 20 01:20:09 2012 +0200
     1.3 @@ -436,14 +436,15 @@
     1.4      end
     1.5      if (readonly or direct_voter.comment) and not preview then
     1.6        local text
     1.7 -      if direct_voter.comment_changed then
     1.8 +      if direct_voter and direct_voter.comment_changed then
     1.9          text = _("Voting comment (last updated: #{timestamp})", { timestamp = format.timestamp(direct_voter.comment_changed) })
    1.10 -      else
    1.11 +      elseif direct_voter and direct_voter.comment then
    1.12          text = _"Voting comment"
    1.13        end
    1.14 +      if text then
    1.15          ui.heading{ level = "2", content = text }
    1.16 -        
    1.17 -      if direct_voter.comment then
    1.18 +      end
    1.19 +      if direct_voter and direct_voter.comment then
    1.20          local rendered_comment = direct_voter:get_content('html')
    1.21          ui.container{ attr = { class = "member_statement" }, content = function()
    1.22            slot.put(rendered_comment)

Impressum / About Us