liquid_feedback_frontend
view app/main/member/_action/update.lua @ 118:93f4e465b50d
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.
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 | 733f65c0c0a0 | 
| children | c587d8762e62 | 
 line source
     1 param.update(app.session.member,
     2   "organizational_unit",
     3   "internal_posts",
     4   "realname",
     5   "birthday",
     6   "address",
     7   "email",
     8   "xmpp_address",
     9   "website",
    10   "phone",
    11   "mobile_phone",
    12   "profession",
    13   "external_memberships",
    14   "external_posts",
    15   "statement"
    16 )
    18 if tostring(app.session.member.birthday) == "invalid_date" then
    19   app.session.member.birthday = nil
    20   slot.put_into("error", _"Date format is not valid. Please use following format: YYYY-MM-DD")
    21   return false
    22 end
    24 app.session.member:save()
    27 slot.put_into("notice", _"Your page has been updated")
