liquid_feedback_frontend

diff app/main/interest/_action/update.lua @ 964:1997cf1da04b

Added support for finished phases
author bsw
date Thu Feb 21 19:32:48 2013 +0100 (2013-02-21)
parents b77e6a17ca77
children 072fa7a9e0fc
line diff
     1.1 --- a/app/main/interest/_action/update.lua	Thu Feb 21 18:56:59 2013 +0100
     1.2 +++ b/app/main/interest/_action/update.lua	Thu Feb 21 19:32:48 2013 +0100
     1.3 @@ -10,6 +10,14 @@
     1.4  elseif issue.fully_frozen then 
     1.5    slot.put_into("error", _"Voting for this issue has already begun.")
     1.6    return false
     1.7 +elseif 
     1.8 +  (issue.half_frozen and issue.phase_finished) or
     1.9 +  (not issue.accepted and issue.phase_finished) 
    1.10 +then
    1.11 +  slot.put_into("error", _"Current phase is already closed.")
    1.12 +  return false
    1.13 +end
    1.14 +
    1.15  end
    1.16  
    1.17  if param.get("delete", atom.boolean) then

Impressum / About Us