liquid_feedback_frontend

view app/main/timeline/_action/save.lua @ 124:f740026b1518

add initiator support in delegation

if a delegation is issued from the initiative view, the initiators
from that one are added to the delegation target list. this makes it easier to delegate to the author without the need to add him to the contact list.
author Daniel Poelzleithner <poelzi@poelzi.org>
date Mon Sep 20 20:32:04 2010 +0200 (2010-09-20)
parents 77d58efe99fd
children 7c3e8a1678fc
line source
1 local id = param.get("id", atom.number)
3 local setting_key = "liquidfeedback_frontend_timeline_current_options"
4 local setting = Setting:by_pk(app.session.member.id, setting_key)
5 local options_string = setting.value
7 local timeline_filter
9 local subkey = param.get("name")
11 setting_map = SettingMap:new()
12 setting_map.member_id = app.session.member.id
13 setting_map.key = "timeline_filters"
14 setting_map.subkey = subkey
15 setting_map.value = options_string
16 setting_map:save()
18 local timeline_params = {}
19 if options_string then
20 for event_ident, filter_idents in setting.value:gmatch("(%S+):(%S+)") do
21 timeline_params["option_" .. event_ident] = true
22 if filter_idents ~= "*" then
23 for filter_ident in filter_idents:gmatch("([^\|]+)") do
24 timeline_params["option_" .. event_ident .. "_" .. filter_ident] = true
25 end
26 end
27 end
28 end
30 local setting_key = "liquidfeedback_frontend_timeline_current_date"
31 local setting = Setting:by_pk(app.session.member.id, setting_key)
33 if setting then
34 timeline_params.date = setting.value
35 end
37 request.redirect{
38 module = "timeline",
39 view = "index",
40 params = timeline_params
41 }

Impressum / About Us