liquid_feedback_frontend

changeset 1478:8c9f7f9152ce

Fixed redirecting after delegation change
author bsw
date Thu Oct 18 17:54:48 2018 +0200 (2018-10-18)
parents e11d8f3a663a
children 00d281ba3099
files app/main/delegation/show.lua
line diff
     1.1 --- a/app/main/delegation/show.lua	Thu Oct 18 17:48:21 2018 +0200
     1.2 +++ b/app/main/delegation/show.lua	Thu Oct 18 17:54:48 2018 +0200
     1.3 @@ -136,9 +136,11 @@
     1.4            routing = {
     1.5              default = {
     1.6                mode = "redirect",
     1.7 -              module = area and "area" or initiative and "initiative" or issue and "issue" or "unit",
     1.8 -              view = "show",
     1.9 -              id = area and area.id or initiative and initiative.id or issue and issue.id or unit.id,
    1.10 +              module = issue and "issue" or initiative and "initiative" or "index",
    1.11 +              view = issue and "show" or initiative and "show" or "index",
    1.12 +              id = initiative and initiative.id or issue and issue.id,
    1.13 +              params = { area = area and area.id, unit = unit and unit.id or area and area.unit_id }
    1.14 +              
    1.15              }
    1.16            },
    1.17            content = function()

Impressum / About Us