From 16a0970d2565494572ff184580fe048ad0eeef42 Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Thu, 21 Dec 2023 09:21:00 -0600 Subject: [PATCH] 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. --- src/qqq/pages/processes/ProcessRun.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qqq/pages/processes/ProcessRun.tsx b/src/qqq/pages/processes/ProcessRun.tsx index a8fa84e..254396f 100644 --- a/src/qqq/pages/processes/ProcessRun.tsx +++ b/src/qqq/pages/processes/ProcessRun.tsx @@ -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)