liquid_feedback_frontend

diff app/main/vote/_action/update.lua @ 880:fe39c1fb541b

Do not save voting comment changed timestamp if issue is still in voting
author bsw
date Mon Aug 20 01:06:20 2012 +0200 (2012-08-20)
parents ea3d3757ddc3
children 815995d95962
line diff
     1.1 --- a/app/main/vote/_action/update.lua	Mon Aug 20 01:00:09 2012 +0200
     1.2 +++ b/app/main/vote/_action/update.lua	Mon Aug 20 01:06:20 2012 +0200
     1.3 @@ -73,12 +73,16 @@
     1.4        if #comment > 0 then
     1.5          direct_voter.formatting_engine = formatting_engine
     1.6          direct_voter.comment = comment
     1.7 -        direct_voter.comment_changed = 'now'
     1.8 +        if issue.closed then
     1.9 +          direct_voter.comment_changed = 'now'
    1.10 +        end
    1.11          direct_voter:render_content(true)
    1.12        else
    1.13          direct_voter.formatting_engine = null
    1.14          direct_voter.comment = null
    1.15 -        direct_voter.comment_changed = 'now'
    1.16 +        if issue.closed then
    1.17 +          direct_voter.comment_changed = 'now'
    1.18 +        end
    1.19        end
    1.20      end
    1.21      direct_voter:save()

Impressum / About Us