N°2534 - dashboard: bug with autorefresh that deactivates filtering on organizations

This commit is contained in:
acognet
2020-08-14 13:43:47 +02:00
parent 3a276715d6
commit e0bf262343
2 changed files with 2 additions and 0 deletions

View File

@@ -201,6 +201,7 @@ class ApplicationContext
return implode("&", $aParams); 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]:.... * Returns the params as c[menu]:..., c[org_id]:....
* @return string The params * @return string The params
*/ */

View File

@@ -930,6 +930,7 @@ class RuntimeDashboard extends Dashboard
$sReloadURL = $this->GetReloadURL(); $sReloadURL = $this->GetReloadURL();
$oAppContext = new ApplicationContext(); $oAppContext = new ApplicationContext();
$sContext=$oAppContext->GetForPostParams(); $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( $oPage->add_script(
<<<EOF <<<EOF
if (typeof(AutoReloadDashboardId$sDivId) !== 'undefined') if (typeof(AutoReloadDashboardId$sDivId) !== 'undefined')