# HG changeset patch # User bsw # Date 1632414071 -7200 # Node ID f7c42bcf149013b90c16b4c5a3fe672d6eb7d1d4 # Parent 488206624b46a9e70234037c4bba953e8e7d9dd8 Allow showing other units in single unit mode diff -r 488206624b46 -r f7c42bcf1490 app/main/index/_head.lua --- a/app/main/index/_head.lua Thu Sep 23 18:01:38 2021 +0200 +++ b/app/main/index/_head.lua Thu Sep 23 18:21:11 2021 +0200 @@ -1,4 +1,4 @@ -local unit_id = app.single_unit_id or request.get_param{ name = "unit" } +local unit_id = config.single_unit_id or request.get_param{ name = "unit" } or app.single_unit_id local area_id = config.single_area_id or request.get_param{ name = "area" } local initiative = param.get("initiative", "table") diff -r 488206624b46 -r f7c42bcf1490 app/main/issue/_filters.lua --- a/app/main/issue/_filters.lua Thu Sep 23 18:01:38 2021 +0200 +++ b/app/main/issue/_filters.lua Thu Sep 23 18:21:11 2021 +0200 @@ -5,7 +5,7 @@ local member = param.get("member", "table") local phase = request.get_param{ name = "phase" } -local selected_unit_id = app.single_unit_id or request.get_param{ name = "unit" } +local selected_unit_id = config.single_unit_id or request.get_param{ name = "unit" } or app.single_unit_id if selected_unit_id == "all" then selected_unit_id = nil end