liquid_feedback_frontend

view app/main/suggestion/_action/add.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 afd9f769c7ae
line source
1 db:query("BEGIN")
3 local suggestion = Suggestion:new()
5 suggestion.author_id = app.session.member.id
6 param.update(suggestion, "name", "description", "initiative_id")
7 suggestion:save()
9 local opinion = Opinion:new()
11 opinion.suggestion_id = suggestion.id
12 opinion.member_id = app.session.member.id
13 opinion.degree = param.get("degree", atom.integer)
14 opinion.fulfilled = false
16 opinion:save()
18 db:query("COMMIT")
20 slot.put_into("notice", _"Your suggestion has been added")

Impressum / About Us