liquid_feedback_frontend

annotate app/main/draft/_action/add.lua @ 1208:24f4c23f76ff

Moved code from draft add action to Draft model
author bsw
date Sat Jul 18 15:58:39 2015 +0200 (2015-07-18)
parents 701a5cf6b067
children 32cc544d5a5b
rev   line source
bsw@1208 1 return Draft:update_content(
bsw@1208 2 app.session.member.id,
bsw@1208 3 param.get("initiative_id", atom.integer),
bsw@1208 4 param.get("formatting_engine"),
bsw@1208 5 param.get("content"),
bsw@1208 6 nil,
bsw@1208 7 param.get("preview") or param.get("edit")
bsw@1208 8 )

Impressum / About Us