liquid_feedback_frontend

annotate app/main/area/_action/update.lua @ 3:768faea1096d

Version alpha4

Members interested in an issue or supporting an initiative have a weight information attached. Browsing the members causing that weight is possible.

Initiatives may provide a link to an external discussion platform

Direct link on every initiative page to create an alternative initiative

Bugfix: No error when clicking "neutral", when "neutral" is currently selected
author bsw
date Mon Nov 30 12:00:00 2009 +0100 (2009-11-30)
parents 3bfb2fcf7ab9
children 80c215dbf076
rev   line source
bsw/jbe@0 1 local id = param.get_id()
bsw/jbe@0 2
bsw/jbe@0 3 local area
bsw/jbe@0 4 if id then
bsw/jbe@0 5 area = Area:new_selector():add_where{ "id = ?", id }:single_object_mode():exec()
bsw/jbe@0 6 else
bsw/jbe@0 7 area = Area:new()
bsw/jbe@0 8 end
bsw/jbe@0 9
bsw/jbe@0 10
bsw/jbe@0 11 param.update(area, "name", "description", "active")
bsw/jbe@0 12
bsw/jbe@0 13 area:save()
bsw/jbe@0 14
bsw/jbe@0 15 slot.put_into("notice", _"Area successfully updated")

Impressum / About Us