groupBy was not correctly parsed from a URL
This commit is contained in:
@@ -1259,7 +1259,8 @@ function GetURLParameter(paramName, defaultValue)
|
|||||||
|
|
||||||
function GetURLParameterArray(paramName, defaults)
|
function GetURLParameterArray(paramName, defaults)
|
||||||
{
|
{
|
||||||
var result = defaults != undefined ? defaults : [];
|
var foundParameter = false;
|
||||||
|
var result = [];
|
||||||
var pageURL = window.location.search.substring(1);
|
var pageURL = window.location.search.substring(1);
|
||||||
var URLVariables = pageURL.split('&');
|
var URLVariables = pageURL.split('&');
|
||||||
for (var i = 0; i < URLVariables.length; i++)
|
for (var i = 0; i < URLVariables.length; i++)
|
||||||
@@ -1268,8 +1269,14 @@ function GetURLParameterArray(paramName, defaults)
|
|||||||
if (decodeURIComponent(keyValue[0]) == paramName+"[]")
|
if (decodeURIComponent(keyValue[0]) == paramName+"[]")
|
||||||
{
|
{
|
||||||
result.push(decodeURIComponent(keyValue[1]));
|
result.push(decodeURIComponent(keyValue[1]));
|
||||||
|
foundParameter = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!foundParameter){
|
||||||
|
result = defaults != undefined ? defaults : []
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user