mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°5651 Fix JS method GetAbsoluteUrlModulePage() not reporting parameters values
This JS method is legacy and never used with parameters, so we are choosing to fix it only in the develop branch.
This commit is contained in:
@@ -90,7 +90,7 @@ class NiceWebPage extends WebPage
|
||||
$sAppContext = addslashes($this->GetApplicationContext());
|
||||
|
||||
$this->add_script(
|
||||
<<<EOF
|
||||
<<<JS
|
||||
function GetAbsoluteUrlAppRoot()
|
||||
{
|
||||
return '$sAbsURLAppRoot';
|
||||
@@ -111,7 +111,7 @@ function GetAbsoluteUrlModulePage(sModule, sPage, aArguments)
|
||||
{
|
||||
if (aArguments.hasOwnProperty(sArgName))
|
||||
{
|
||||
sUrl = sUrl + '&'+sArgName+'='+aArguments[sArgname];
|
||||
sUrl = sUrl + '&'+sArgName+'='+aArguments[sArgName];
|
||||
}
|
||||
}
|
||||
return sUrl;
|
||||
@@ -130,7 +130,7 @@ function AddAppContext(sURL)
|
||||
}
|
||||
return sURL;
|
||||
}
|
||||
EOF
|
||||
JS
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user