From f90105c107c72522142547845b73f31c10bc1fd3 Mon Sep 17 00:00:00 2001 From: acognet Date: Wed, 12 Aug 2020 14:18:05 +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 | 9 ++++++++- application/dashboard.class.inc.php | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/application/applicationcontext.class.inc.php b/application/applicationcontext.class.inc.php index 9ae18666b..0b3aed7cb 100644 --- a/application/applicationcontext.class.inc.php +++ b/application/applicationcontext.class.inc.php @@ -200,7 +200,14 @@ class ApplicationContext } return implode("&", $aParams); } - + /** + * Returns the params as c[menu]:..., c[org_id]:.... + * @return string The params + */ + public function GetForPostParams() + { + return json_encode( $this->aValues); + } /** * Returns the context as sequence of input tags to be inserted inside a
tag * @return string The context as a sequence of tags diff --git a/application/dashboard.class.inc.php b/application/dashboard.class.inc.php index 322e68e38..79daba509 100644 --- a/application/dashboard.class.inc.php +++ b/application/dashboard.class.inc.php @@ -928,6 +928,8 @@ class RuntimeDashboard extends Dashboard $sExtraParams = json_encode($aAjaxParams); $iReloadInterval = 1000 * $this->GetAutoReloadInterval(); $sReloadURL = $this->GetReloadURL(); + $oAppContext = new ApplicationContext(); + $sContext=$oAppContext->GetForPostParams(); $oPage->add_script( <<