liquid_feedback_frontend

diff app/main/interest/_action/update.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 374bbc2ff102
line diff
     1.1 --- a/app/main/interest/_action/update.lua	Thu Dec 10 12:00:00 2009 +0100
     1.2 +++ b/app/main/interest/_action/update.lua	Fri Dec 25 12:00:00 2009 +0100
     1.3 @@ -1,6 +1,18 @@
     1.4  local issue_id = assert(param.get("issue_id", atom.integer), "no issue id given")
     1.5 +
     1.6  local interest = Interest:by_pk(issue_id, app.session.member.id)
     1.7  
     1.8 +-- TODO important m1 selectors returning result _SET_!
     1.9 +local issue = interest:get_reference_selector("issue"):for_share():single_object_mode():exec()
    1.10 +
    1.11 +if issue.closed then
    1.12 +  slot.put_into("error", _"This issue is already closed.")
    1.13 +  return false
    1.14 +elseif issue.fully_frozen then 
    1.15 +  slot.put_into("error", _"Voting for this issue has already begun.")
    1.16 +  return false
    1.17 +end
    1.18 +
    1.19  if param.get("delete", atom.boolean) then
    1.20    if interest then
    1.21      interest:destroy()

Impressum / About Us