Bugfix: Add some encodeURIComponent calls (specifically adding for table variant when init'ing process, and also for a maybe dead case where a filter for init'ing process). Also set a bgcolor white for non-modal process bodies.

This commit is contained in:
2023-12-21 09:21:00 -06:00
parent 52b3562377
commit 16a0970d25

View File

@ -1113,7 +1113,7 @@ function ProcessRun({process, table, defaultProcessValues, isModal, isWidget, is
if (recordIds instanceof QQueryFilter)
{
queryStringPairsForInit.push("recordsParam=filterJSON");
queryStringPairsForInit.push(`filterJSON=${JSON.stringify(recordIds)}`);
queryStringPairsForInit.push(`filterJSON=${encodeURIComponent(JSON.stringify(recordIds))}`);
}
else if (typeof recordIds === "object" && recordIds.length)
{
@ -1126,7 +1126,7 @@ function ProcessRun({process, table, defaultProcessValues, isModal, isWidget, is
if (tableVariantLocalStorageKey && localStorage.getItem(tableVariantLocalStorageKey))
{
let tableVariant = JSON.parse(localStorage.getItem(tableVariantLocalStorageKey));
queryStringPairsForInit.push(`tableVariant=${JSON.stringify(tableVariant)}`);
queryStringPairsForInit.push(`tableVariant=${encodeURIComponent(JSON.stringify(tableVariant))}`);
}
try
@ -1281,7 +1281,7 @@ function ProcessRun({process, table, defaultProcessValues, isModal, isWidget, is
mainCardStyles.minHeight = `calc(100vh - ${isModal ? 150 : 400}px)`;
if (!processError && (qJobRunning || activeStep === null) && !isModal && !isWidget)
{
mainCardStyles.background = "none";
mainCardStyles.background = "#FFFFFF";
mainCardStyles.boxShadow = "none";
}
if (isWidget)