mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-17 21:00:45 +00:00
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:
@ -1113,7 +1113,7 @@ function ProcessRun({process, table, defaultProcessValues, isModal, isWidget, is
|
|||||||
if (recordIds instanceof QQueryFilter)
|
if (recordIds instanceof QQueryFilter)
|
||||||
{
|
{
|
||||||
queryStringPairsForInit.push("recordsParam=filterJSON");
|
queryStringPairsForInit.push("recordsParam=filterJSON");
|
||||||
queryStringPairsForInit.push(`filterJSON=${JSON.stringify(recordIds)}`);
|
queryStringPairsForInit.push(`filterJSON=${encodeURIComponent(JSON.stringify(recordIds))}`);
|
||||||
}
|
}
|
||||||
else if (typeof recordIds === "object" && recordIds.length)
|
else if (typeof recordIds === "object" && recordIds.length)
|
||||||
{
|
{
|
||||||
@ -1126,7 +1126,7 @@ function ProcessRun({process, table, defaultProcessValues, isModal, isWidget, is
|
|||||||
if (tableVariantLocalStorageKey && localStorage.getItem(tableVariantLocalStorageKey))
|
if (tableVariantLocalStorageKey && localStorage.getItem(tableVariantLocalStorageKey))
|
||||||
{
|
{
|
||||||
let tableVariant = JSON.parse(localStorage.getItem(tableVariantLocalStorageKey));
|
let tableVariant = JSON.parse(localStorage.getItem(tableVariantLocalStorageKey));
|
||||||
queryStringPairsForInit.push(`tableVariant=${JSON.stringify(tableVariant)}`);
|
queryStringPairsForInit.push(`tableVariant=${encodeURIComponent(JSON.stringify(tableVariant))}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -1281,7 +1281,7 @@ function ProcessRun({process, table, defaultProcessValues, isModal, isWidget, is
|
|||||||
mainCardStyles.minHeight = `calc(100vh - ${isModal ? 150 : 400}px)`;
|
mainCardStyles.minHeight = `calc(100vh - ${isModal ? 150 : 400}px)`;
|
||||||
if (!processError && (qJobRunning || activeStep === null) && !isModal && !isWidget)
|
if (!processError && (qJobRunning || activeStep === null) && !isModal && !isWidget)
|
||||||
{
|
{
|
||||||
mainCardStyles.background = "none";
|
mainCardStyles.background = "#FFFFFF";
|
||||||
mainCardStyles.boxShadow = "none";
|
mainCardStyles.boxShadow = "none";
|
||||||
}
|
}
|
||||||
if (isWidget)
|
if (isWidget)
|
||||||
|
Reference in New Issue
Block a user