mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-22 08:42:17 +02:00
N°2534 - dashboard: bug with autorefresh that deactivates filtering on organizations
This commit is contained in:
@@ -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
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user