liquid_feedback_frontend

changeset 1700:f7c42bcf1490

Allow showing other units in single unit mode
author bsw
date Thu Sep 23 18:21:11 2021 +0200 (2021-09-23)
parents 488206624b46
children b2868d84275e
files app/main/index/_head.lua app/main/issue/_filters.lua
line diff
     1.1 --- a/app/main/index/_head.lua	Thu Sep 23 18:01:38 2021 +0200
     1.2 +++ b/app/main/index/_head.lua	Thu Sep 23 18:21:11 2021 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -local unit_id = app.single_unit_id or request.get_param{ name = "unit" }
     1.5 +local unit_id = config.single_unit_id or request.get_param{ name = "unit" } or app.single_unit_id
     1.6  local area_id = config.single_area_id or request.get_param{ name = "area" }
     1.7  
     1.8  local initiative = param.get("initiative", "table")
     2.1 --- a/app/main/issue/_filters.lua	Thu Sep 23 18:01:38 2021 +0200
     2.2 +++ b/app/main/issue/_filters.lua	Thu Sep 23 18:21:11 2021 +0200
     2.3 @@ -5,7 +5,7 @@
     2.4  local member = param.get("member", "table")
     2.5  local phase = request.get_param{ name = "phase" }
     2.6  
     2.7 -local selected_unit_id = app.single_unit_id or request.get_param{ name = "unit" }
     2.8 +local selected_unit_id = config.single_unit_id or request.get_param{ name = "unit" } or app.single_unit_id
     2.9  if selected_unit_id == "all" then
    2.10    selected_unit_id = nil 
    2.11  end

Impressum / About Us