liquid_feedback_frontend

view app/main/admin/_action/area_update.lua @ 7:3941792e8be6

Version beta3

Table allowed_policy is respected while creating new issues

Broken vote now/later link is not shown anymore (until it's implemented)

More user friendly error page

Minor spelling error corrected
author bsw
date Sat Jan 02 12:00:00 2010 +0100 (2010-01-02)
parents afd9f769c7ae
children 915cc0341538
line source
1 if not app.session.member.admin then
2 error()
3 end
5 local id = param.get_id()
7 local area
8 if id then
9 area = Area:new_selector():add_where{ "id = ?", id }:single_object_mode():exec()
10 else
11 area = Area:new()
12 end
15 param.update(area, "name", "description", "active")
17 area:save()
19 slot.put_into("notice", _"Area successfully updated")

Impressum / About Us