CTLE-397: fix bug on unencoded component filterJSON

This commit is contained in:
Tim Chamberlain
2023-04-18 17:25:24 -05:00
parent 38d607848f
commit 9d809f400b

View File

@ -1077,7 +1077,7 @@ function ProcessRun({process, table, defaultProcessValues, isModal, isWidget, is
else if (urlSearchParams.get("filterJSON")) else if (urlSearchParams.get("filterJSON"))
{ {
queryStringPairsForInit.push("recordsParam=filterJSON"); queryStringPairsForInit.push("recordsParam=filterJSON");
queryStringPairsForInit.push(`filterJSON=${urlSearchParams.get("filterJSON")}`); queryStringPairsForInit.push(`filterJSON=${encodeURIComponent(urlSearchParams.get("filterJSON"))}`);
} }
// todo once saved filters exist // todo once saved filters exist
//else if(urlSearchParams.get("filterId")) { //else if(urlSearchParams.get("filterId")) {