From e0bf262343b056e9e61918ce904bf97c5a49e134 Mon Sep 17 00:00:00 2001 From: acognet Date: Fri, 14 Aug 2020 13:43:47 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B02534=20-=20dashboard:=20bug=20with=20aut?= =?UTF-8?q?orefresh=20that=20deactivates=20filtering=20on=20organizations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/applicationcontext.class.inc.php | 1 + application/dashboard.class.inc.php | 1 + 2 files changed, 2 insertions(+) diff --git a/application/applicationcontext.class.inc.php b/application/applicationcontext.class.inc.php index 0b3aed7cb..b24fafd3a 100644 --- a/application/applicationcontext.class.inc.php +++ b/application/applicationcontext.class.inc.php @@ -201,6 +201,7 @@ class ApplicationContext return implode("&", $aParams); } /** + * @since 2.8.0 N°2534 - dashboard: bug with autorefresh that deactivates filtering on organisation * Returns the params as c[menu]:..., c[org_id]:.... * @return string The params */ diff --git a/application/dashboard.class.inc.php b/application/dashboard.class.inc.php index 79daba509..4346623e6 100644 --- a/application/dashboard.class.inc.php +++ b/application/dashboard.class.inc.php @@ -930,6 +930,7 @@ class RuntimeDashboard extends Dashboard $sReloadURL = $this->GetReloadURL(); $oAppContext = new ApplicationContext(); $sContext=$oAppContext->GetForPostParams(); + //$sContext is named "c" because it use the existing code for context parameters c[org_id] and c[menu] $oPage->add_script( <<