liquid_feedback_frontend

diff app/main/initiative/_action/add_support.lua @ 5:afd9f769c7ae

Version beta1

Final voting with Schulze-Method is now possible

Many bug fixes and code cleanup

Registration with invite codes

More sort and filter options

Seperated display of "supporters" and "potential supporters"

Optical changes

Flood limit / initiative contigent is now checked by frontend

Neccessary changes to access core beta11
author bsw/jbe
date Fri Dec 25 12:00:00 2009 +0100 (2009-12-25)
parents 3bfb2fcf7ab9
children 72c5e0ee7c98
line diff
     1.1 --- a/app/main/initiative/_action/add_support.lua	Thu Dec 10 12:00:00 2009 +0100
     1.2 +++ b/app/main/initiative/_action/add_support.lua	Fri Dec 25 12:00:00 2009 +0100
     1.3 @@ -1,5 +1,16 @@
     1.4  local initiative = Initiative:new_selector():add_where{ "id = ?", param.get_id()}:single_object_mode():exec()
     1.5  
     1.6 +-- TODO important m1 selectors returning result _SET_!
     1.7 +local issue = initiative:get_reference_selector("issue"):for_share():single_object_mode():exec()
     1.8 +
     1.9 +if issue.closed then
    1.10 +  slot.put_into("error", _"This issue is already closed.")
    1.11 +  return false
    1.12 +elseif issue.fully_frozen then 
    1.13 +  slot.put_into("error", _"Voting for this issue has already begun.")
    1.14 +  return false
    1.15 +end
    1.16 +
    1.17  local member = app.session.member
    1.18  
    1.19  local supporter = Supporter:by_pk(initiative.id, member.id)

Impressum / About Us