liquid_feedback_frontend
diff app/main/opinion/_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
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 | 768faea1096d |
| children | 8d91bccab0bf |
line diff
1.1 --- a/app/main/opinion/_action/update.lua Thu Dec 10 12:00:00 2009 +0100 1.2 +++ b/app/main/opinion/_action/update.lua Fri Dec 25 12:00:00 2009 +0100 1.3 @@ -4,6 +4,19 @@ 1.4 1.5 local opinion = Opinion:by_pk(member_id, suggestion_id) 1.6 1.7 +-- TODO important m1 selectors returning result _SET_! 1.8 +local issue = opinion.initiative:get_reference_selector("issue"):for_share():single_object_mode():exec() 1.9 + 1.10 +if issue.closed then 1.11 + slot.put_into("error", _"This issue is already closed.") 1.12 + return false 1.13 +elseif issue.fully_frozen then 1.14 + slot.put_into("error", _"Voting for this issue has already begun.") 1.15 + return false 1.16 +end 1.17 + 1.18 + 1.19 + 1.20 if param.get("delete") then 1.21 if opinion then 1.22 opinion:destroy()