# HG changeset patch # User bsw # Date 1613395207 -3600 # Node ID 05d2f46c60c5fd42d11ae11fc73296b63eef9b01 # Parent 59cbb870253c5de2688bf9a93216564652d083a9 Fixed cancel link in preview diff -r 59cbb870253c -r 05d2f46c60c5 app/main/draft/new.lua --- a/app/main/draft/new.lua Mon Feb 15 14:17:51 2021 +0100 +++ b/app/main/draft/new.lua Mon Feb 15 14:20:07 2021 +0100 @@ -236,9 +236,10 @@ ui.link{ attr = { class = "mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect" }, content = _"Cancel", - module = initiative and "initiative" or "area", - view = "show", - id = initiative_id or area_id + module = initiative and "initiative" or "index", + view = initiative and "show" or "index", + id = initiative_id, + params = { unit = area and area.unit_id or nil, area = area_id } } end )