liquid_feedback_frontend
annotate app/main/api/_settings.lua @ 1478:8c9f7f9152ce
Fixed redirecting after delegation change
author | bsw |
---|---|
date | Thu Oct 18 17:54:48 2018 +0200 (2018-10-18) |
parents | 32cc544d5a5b |
children |
rev | line source |
---|---|
bsw/jbe@1309 | 1 local settings = param.get("settings", "table") |
bsw/jbe@1309 | 2 |
bsw/jbe@1309 | 3 local r = json.object() |
bsw/jbe@1309 | 4 |
bsw/jbe@1309 | 5 for i, field in ipairs(config.member_settings_fields) do |
bsw/jbe@1309 | 6 if settings.settings[field.id] ~= nil then |
bsw/jbe@1309 | 7 r[field.id] = settings.settings[field.id] |
bsw/jbe@1309 | 8 end |
bsw/jbe@1309 | 9 end |
bsw/jbe@1309 | 10 |
bsw/jbe@1309 | 11 return r |