liquid_feedback_frontend

diff app/main/admin/_action/area_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
children 915cc0341538
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/app/main/admin/_action/area_update.lua	Fri Dec 25 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +if not app.session.member.admin then
     1.5 +  error()
     1.6 +end
     1.7 +
     1.8 +local id = param.get_id()
     1.9 +
    1.10 +local area
    1.11 +if id then
    1.12 +  area = Area:new_selector():add_where{ "id = ?", id }:single_object_mode():exec()
    1.13 +else
    1.14 +  area = Area:new()
    1.15 +end
    1.16 +
    1.17 +
    1.18 +param.update(area, "name", "description", "active")
    1.19 +
    1.20 +area:save()
    1.21 +
    1.22 +slot.put_into("notice", _"Area successfully updated")

Impressum / About Us