# HG changeset patch # User bsw # Date 1330272771 -3600 # Node ID a88f3ecb4606347dd12af019d9c40bece7cd8631 # Parent 1a55347e83bf9b79f6f5ea920996a7ad82b6c16e Fixed redirect after setting unit delegation diff -r 1a55347e83bf -r a88f3ecb4606 app/main/delegation/new.lua --- a/app/main/delegation/new.lua Sun Feb 26 15:05:29 2012 +0100 +++ b/app/main/delegation/new.lua Sun Feb 26 17:12:51 2012 +0100 @@ -75,10 +75,9 @@ routing = { default = { mode = "redirect", - module = area and "area" or issue and "issue" or "area", - view = (area or issue) and "show" or "list", - id = area and area.id or issue and issue.id or nil, - params = { unit_id = unit and unit.id or nil } + module = area and "area" or issue and "issue" or "unit", + view = "show", + id = area and area.id or issue and issue.id or unit.id } }, content = function()