diff --git a/components/case/documents.js b/components/case/documents.js index 41b94b9a..daeb274d 100644 --- a/components/case/documents.js +++ b/components/case/documents.js @@ -160,7 +160,7 @@ const DocumentDetails = (props) => { ? jsonpath({ path: '$..[?(@.value=="All")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : "All"} @@ -179,7 +179,7 @@ const DocumentDetails = (props) => { item.pinswg_isharedocumentlocationsLabel + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : item.pinswg_isharedocumentlocationsLabel || t( @@ -735,7 +735,7 @@ const DocumentDetails = (props) => { incidentid + "')]", json: item, - sandbox: {}, + eval: true, }); detailsObj = item; return ( @@ -830,7 +830,7 @@ const DocumentDetails = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_isharedocumentlocations@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/representation/index.js b/components/case/representation/index.js index ce849cbe..64b4c03a 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -212,18 +212,18 @@ let MakeRepresentation = (props) => { ? (casesObj = jsonpath({ path: '$..[?(@.title=="' + caseReference + '")]', json: setCaseQueryObj, - sandbox: {}, + eval: true, })) : currentType == "watchedCases" ? (casesObj = jsonpath({ path: '$..[?(@.ticketnumber=="' + caseReference + '")]', json: watchedCases, - sandbox: {}, + eval: true, })) : (casesObj = jsonpath({ path: '$..[?(@.reference=="' + caseReference + '")]', json: setCaseQueryObj, - sandbox: {}, + eval: true, })); casesObj = Object.assign({}, ...casesObj); @@ -271,7 +271,7 @@ let MakeRepresentation = (props) => { currentView.caseReference.currentReference + '")]', json: setCaseResultsObj, - sandbox: {}, + eval: true, }); resultsObj = resultsObj[0]; @@ -282,7 +282,7 @@ let MakeRepresentation = (props) => { path: '$..[?(@.repfile_name =="' + router.query.created + '")]', json: setCaseDetailsObj, - sandbox: {}, + eval: true, }) : jsonpath({ path: @@ -290,7 +290,7 @@ let MakeRepresentation = (props) => { currentView.caseReference.currentReference + '")]', json: setCaseDetailsObj, - sandbox: {}, + eval: true, }) : jsonpath({ path: @@ -298,7 +298,7 @@ let MakeRepresentation = (props) => { currentView.caseReference.currentReference + '")]', json: setCaseDetailsObj, - sandbox: {}, + eval: true, }); detailsObj = detailsObj[0]; @@ -945,7 +945,7 @@ let MakeRepresentation = (props) => { detailsObj = jsonpath({ path: '$..[?(@.pinswg_name=="' + caseReference + '")]', json: setCaseDetailsObj, - sandbox: {}, + eval: true, }); detailsObj = detailsObj[0]; diff --git a/components/case/representation/representationDetails.js b/components/case/representation/representationDetails.js index 8b32d7a3..afd6e0e3 100644 --- a/components/case/representation/representationDetails.js +++ b/components/case/representation/representationDetails.js @@ -31,7 +31,7 @@ const RepDetails = (props) => { detailsObj = jsonpath({ path: '$..[?(@.pinswg_name=="' + caseReference + '")]', json: setCaseDetailsObj, - sandbox: {}, + eval: true, }); detailsObj = detailsObj[0]; diff --git a/components/case/representation/representationLPA.js b/components/case/representation/representationLPA.js index d2950f83..f782526b 100644 --- a/components/case/representation/representationLPA.js +++ b/components/case/representation/representationLPA.js @@ -182,7 +182,7 @@ let RepLPA = (props) => { currentView.caseReference.currentReference + '")]', json: setCaseDetailsObj, - sandbox: {}, + eval: true, }); let setCaseResultssObj = router.query.hasOwnProperty("state") @@ -201,7 +201,7 @@ let RepLPA = (props) => { currentView.caseReference.currentReference + '")]', json: setCaseResultssObj, - sandbox: {}, + eval: true, }); resultsObj = resultsObj[0]; diff --git a/components/case/representation/representationLPADetails.js b/components/case/representation/representationLPADetails.js index b9433e0b..8ef1b362 100644 --- a/components/case/representation/representationLPADetails.js +++ b/components/case/representation/representationLPADetails.js @@ -23,7 +23,7 @@ const RepLPADetails = (props) => { detailsObj = jsonpath({ path: '$..[?(@.pinswg_name=="' + caseReference + '")]', json: setCaseDetailsObj, - sandbox: {}, + eval: true, }); detailsObj = detailsObj[0]; diff --git a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js index ef433f52..6230d22f 100644 --- a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js +++ b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js @@ -64,7 +64,7 @@ let Enforcement_Questionnaire = (props) => { currentView.caseReference.currentReference + '")]', json: setCaseDetailsObj, - sandbox: {}, + eval: true, }); let setCaseResultssObj = router.query.hasOwnProperty("state") @@ -87,7 +87,7 @@ let Enforcement_Questionnaire = (props) => { currentView.caseReference.currentReference + '")]', json: setCaseResultssObj, - sandbox: {}, + eval: true, }); resultsObj = resultsObj[0]; diff --git a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js index 20b6cc6a..6b6d2a29 100644 --- a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js +++ b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js @@ -66,7 +66,7 @@ let S78_Questionnaire = (props) => { currentView.caseReference.currentReference + '")]', json: setCaseResultssObj, - sandbox: {}, + eval: true, }); let setCaseResultssObj = router.query.hasOwnProperty("state") @@ -95,7 +95,7 @@ let S78_Questionnaire = (props) => { currentView.caseReference.currentReference + '")]', json: setCaseResultssObj, - sandbox: {}, + eval: true, }); resultsObj = resultsObj[0]; diff --git a/components/case/representationList.js b/components/case/representationList.js index 7c24ae12..bd95c1c9 100644 --- a/components/case/representationList.js +++ b/components/case/representationList.js @@ -63,7 +63,7 @@ const RepresentationList = (props) => { incidentid + "')]", json: item, - sandbox: {}, + eval: true, }); detailsObj = item; diff --git a/components/case/summary.js b/components/case/summary.js index ddedc878..34c466cc 100644 --- a/components/case/summary.js +++ b/components/case/summary.js @@ -138,7 +138,7 @@ const CaseSummary = (props) => { whichIncident + "')]", json: watchedCases, - sandbox: {}, + eval: true, }); return isWatched; @@ -178,30 +178,30 @@ const CaseSummary = (props) => { ? (casesObj = jsonpath({ path: '$..[?(@.title=="' + caseReference + '")]', json: searchResultsObj, - sandbox: {}, + eval: true, })) : currentType == "watchedCases" ? (casesObj = jsonpath({ path: '$..[?(@.pinswg_title=="' + caseReference + '")]', json: setCaseQueryObj, - sandbox: {}, + eval: true, })) : currentType == "myCases" ? (casesObj = jsonpath({ path: '$..[?(@.pinswg_title=="' + caseReference + '")]', json: setCaseQueryObj, - sandbox: {}, + eval: true, })) : currentType == "directResultsObj" ? (casesObj = jsonpath({ path: '$..[?(@.ticketnumber=="' + caseReference + '")]', json: setCaseQueryObj, - sandbox: {}, + eval: true, })) : (casesObj = jsonpath({ path: '$..[?(@.reference=="' + caseReference + '")]', json: setCaseQueryObj, - sandbox: {}, + eval: true, })); casesObj = Object.assign({}, ...casesObj); @@ -212,14 +212,14 @@ const CaseSummary = (props) => { ? (detailsObj = jsonpath({ path: '$..[?(@.pinswg_name=="' + caseReference + '")]', json: searchDetailsObj, - sandbox: {}, + eval: true, })) : currentType == "directResultsObj" ? (detailsObj = setCaseDetailsObj[0].value[0]) : (detailsObj = jsonpath({ path: '$..[?(@.pinswg_name=="' + caseReference + '")]', jsopn: setCaseDetailsObj, - sandbox: {}, + eval: true, })); detailsObj = typeof detailsObj == "object" ? detailsObj : detailsObj[0]; @@ -405,7 +405,7 @@ const CaseSummary = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_casestage@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_advertsid.js b/components/case/summaryTypes/pinswg_advertsid.js index b6208e39..63906eb2 100644 --- a/components/case/summaryTypes/pinswg_advertsid.js +++ b/components/case/summaryTypes/pinswg_advertsid.js @@ -35,7 +35,7 @@ const Pinswg_advertsid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -60,7 +60,7 @@ const Pinswg_advertsid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_speacialistcaseprocess@OData.Community.Display.V1.FormattedValue" @@ -82,7 +82,7 @@ const Pinswg_advertsid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -118,7 +118,7 @@ const Pinswg_advertsid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -139,7 +139,7 @@ const Pinswg_advertsid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -160,7 +160,7 @@ const Pinswg_advertsid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -185,7 +185,7 @@ const Pinswg_advertsid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_callinss77id.js b/components/case/summaryTypes/pinswg_callinss77id.js index f56d2685..d7129125 100644 --- a/components/case/summaryTypes/pinswg_callinss77id.js +++ b/components/case/summaryTypes/pinswg_callinss77id.js @@ -35,7 +35,7 @@ const Pinswg_callinss77id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_callinss77id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_callinss77id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_callinss77id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -137,7 +137,7 @@ const Pinswg_callinss77id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -161,7 +161,7 @@ const Pinswg_callinss77id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_commonlandid.js b/components/case/summaryTypes/pinswg_commonlandid.js index 0f9a093b..107099fc 100644 --- a/components/case/summaryTypes/pinswg_commonlandid.js +++ b/components/case/summaryTypes/pinswg_commonlandid.js @@ -35,7 +35,7 @@ const Pinswg_commonlandid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_commonlandid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_commonlandid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_commonlandid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -137,7 +137,7 @@ const Pinswg_commonlandid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -161,7 +161,7 @@ const Pinswg_commonlandid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" @@ -235,7 +235,7 @@ const Pinswg_commonlandid = (props) => { detailsObj.pinswg_relevantauthorityname + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : jsonpath({ path: @@ -243,7 +243,7 @@ const Pinswg_commonlandid = (props) => { detailsObj.pinswg_relevantauthorityname + '")].value', json: transLookup, - sandbox: {}, + eval: true, }) || t( "case:summary-no-date-entered-label" diff --git a/components/case/summaryTypes/pinswg_communityinfrastructurelevyid.js b/components/case/summaryTypes/pinswg_communityinfrastructurelevyid.js index 724cfe8b..9c2f7a3b 100644 --- a/components/case/summaryTypes/pinswg_communityinfrastructurelevyid.js +++ b/components/case/summaryTypes/pinswg_communityinfrastructurelevyid.js @@ -35,7 +35,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -137,7 +137,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -161,7 +161,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_compulsorypurchaseordersid.js b/components/case/summaryTypes/pinswg_compulsorypurchaseordersid.js index 409b26d7..06a339eb 100644 --- a/components/case/summaryTypes/pinswg_compulsorypurchaseordersid.js +++ b/components/case/summaryTypes/pinswg_compulsorypurchaseordersid.js @@ -35,7 +35,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -75,7 +75,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -96,7 +96,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -117,7 +117,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -141,7 +141,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" @@ -215,7 +215,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => { detailsObj.pinswg_relevantauthorityname + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : jsonpath({ path: @@ -223,7 +223,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => { detailsObj.pinswg_relevantauthorityname + '")].value', json: transLookup, - sandbox: {}, + eval: true, }) || t( "case:summary-no-date-entered-label" diff --git a/components/case/summaryTypes/pinswg_dnsid.js b/components/case/summaryTypes/pinswg_dnsid.js index 5a624b8f..d2a8a95d 100644 --- a/components/case/summaryTypes/pinswg_dnsid.js +++ b/components/case/summaryTypes/pinswg_dnsid.js @@ -131,7 +131,7 @@ const Pinswg_dnsid = (props) => { '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -157,7 +157,7 @@ const Pinswg_dnsid = (props) => { detailsObj.pinswg_webaddress + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : ( { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -218,7 +218,7 @@ const Pinswg_dnsid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_choiceofprocedure@OData.Community.Display.V1.FormattedValue" @@ -281,7 +281,7 @@ const Pinswg_dnsid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -350,7 +350,7 @@ const Pinswg_dnsid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_electricityactid.js b/components/case/summaryTypes/pinswg_electricityactid.js index 35b51298..4dbabebb 100644 --- a/components/case/summaryTypes/pinswg_electricityactid.js +++ b/components/case/summaryTypes/pinswg_electricityactid.js @@ -73,7 +73,7 @@ const Pinswg_electricityactid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -97,7 +97,7 @@ const Pinswg_electricityactid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -135,7 +135,7 @@ const Pinswg_electricityactid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -158,7 +158,7 @@ const Pinswg_electricityactid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -179,7 +179,7 @@ const Pinswg_electricityactid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -203,7 +203,7 @@ const Pinswg_electricityactid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" @@ -277,7 +277,7 @@ const Pinswg_electricityactid = (props) => { detailsObj.pinswg_recommendation + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj.pinswg_recommendation || t( @@ -300,7 +300,7 @@ const Pinswg_electricityactid = (props) => { detailsObj.pinswg_webaddress + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj.pinswg_webaddress || t( diff --git a/components/case/summaryTypes/pinswg_enforcementlistedbuildingconseid.js b/components/case/summaryTypes/pinswg_enforcementlistedbuildingconseid.js index 00fb137d..6b2672da 100644 --- a/components/case/summaryTypes/pinswg_enforcementlistedbuildingconseid.js +++ b/components/case/summaryTypes/pinswg_enforcementlistedbuildingconseid.js @@ -35,7 +35,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -137,7 +137,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -161,7 +161,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_enforcementnoticeappeals174id.js b/components/case/summaryTypes/pinswg_enforcementnoticeappeals174id.js index 5c6f393e..61581c73 100644 --- a/components/case/summaryTypes/pinswg_enforcementnoticeappeals174id.js +++ b/components/case/summaryTypes/pinswg_enforcementnoticeappeals174id.js @@ -35,7 +35,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -137,7 +137,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -161,7 +161,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_environmentalpermittingid.js b/components/case/summaryTypes/pinswg_environmentalpermittingid.js index e9e76b0b..96dd2472 100644 --- a/components/case/summaryTypes/pinswg_environmentalpermittingid.js +++ b/components/case/summaryTypes/pinswg_environmentalpermittingid.js @@ -35,7 +35,7 @@ const Pinswg_environmentalpermittingid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_environmentalpermittingid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_environmentalpermittingid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_environmentalpermittingid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -137,7 +137,7 @@ const Pinswg_environmentalpermittingid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -161,7 +161,7 @@ const Pinswg_environmentalpermittingid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" @@ -235,7 +235,7 @@ const Pinswg_environmentalpermittingid = (props) => { detailsObj.pinswg_relevantauthorityname + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : jsonpath({ path: @@ -243,7 +243,7 @@ const Pinswg_environmentalpermittingid = (props) => { detailsObj.pinswg_relevantauthorityname + '")].value', json: transLookup, - sandbox: {}, + eval: true, }) || t( "case:summary-no-date-entered-label" diff --git a/components/case/summaryTypes/pinswg_harbourrevisionorderid.js b/components/case/summaryTypes/pinswg_harbourrevisionorderid.js index 980373f5..d286782b 100644 --- a/components/case/summaryTypes/pinswg_harbourrevisionorderid.js +++ b/components/case/summaryTypes/pinswg_harbourrevisionorderid.js @@ -73,7 +73,7 @@ const Pinswg_harbourrevisionorderid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -97,7 +97,7 @@ const Pinswg_harbourrevisionorderid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -135,7 +135,7 @@ const Pinswg_harbourrevisionorderid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -156,7 +156,7 @@ const Pinswg_harbourrevisionorderid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -180,7 +180,7 @@ const Pinswg_harbourrevisionorderid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" @@ -254,7 +254,7 @@ const Pinswg_harbourrevisionorderid = (props) => { detailsObj.pinswg_recommendation + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj.pinswg_recommendation || t( @@ -277,7 +277,7 @@ const Pinswg_harbourrevisionorderid = (props) => { detailsObj.pinswg_webaddress + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj.pinswg_webaddress || t( diff --git a/components/case/summaryTypes/pinswg_hedgeshedgerowstreepreservatioid.js b/components/case/summaryTypes/pinswg_hedgeshedgerowstreepreservatioid.js index d3ed5d7f..48f35bf9 100644 --- a/components/case/summaryTypes/pinswg_hedgeshedgerowstreepreservatioid.js +++ b/components/case/summaryTypes/pinswg_hedgeshedgerowstreepreservatioid.js @@ -35,7 +35,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -60,7 +60,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_specialistcaseprocess@OData.Community.Display.V1.FormattedValue" @@ -82,7 +82,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -118,7 +118,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -139,7 +139,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -160,7 +160,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -184,7 +184,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" @@ -258,7 +258,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => { detailsObj.pinswg_relevantauthorityname + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : jsonpath({ path: @@ -266,7 +266,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => { detailsObj.pinswg_relevantauthorityname + '")].value', json: transLookup, - sandbox: {}, + eval: true, }) || t( "case:summary-no-date-entered-label" diff --git a/components/case/summaryTypes/pinswg_householderappealhasid.js b/components/case/summaryTypes/pinswg_householderappealhasid.js index 98d8f8fe..e94f86db 100644 --- a/components/case/summaryTypes/pinswg_householderappealhasid.js +++ b/components/case/summaryTypes/pinswg_householderappealhasid.js @@ -35,7 +35,7 @@ const Pinswg_householderappealhasid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_householderappealhasid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_householderappealhasid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_householderappealhasid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -140,7 +140,7 @@ const Pinswg_householderappealhasid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_lawfuldevelopmentcertificatappid.js b/components/case/summaryTypes/pinswg_lawfuldevelopmentcertificatappid.js index 54c02828..0ab88510 100644 --- a/components/case/summaryTypes/pinswg_lawfuldevelopmentcertificatappid.js +++ b/components/case/summaryTypes/pinswg_lawfuldevelopmentcertificatappid.js @@ -35,7 +35,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -137,7 +137,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -161,7 +161,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_ldpid.js b/components/case/summaryTypes/pinswg_ldpid.js index b04d8699..693466ee 100644 --- a/components/case/summaryTypes/pinswg_ldpid.js +++ b/components/case/summaryTypes/pinswg_ldpid.js @@ -35,7 +35,7 @@ const Pinswg_ldpid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_ldpid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_ldpid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_ldpid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -137,7 +137,7 @@ const Pinswg_ldpid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -161,7 +161,7 @@ const Pinswg_ldpid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_listedbuildingandconservationrid.js b/components/case/summaryTypes/pinswg_listedbuildingandconservationrid.js index e66f06bb..f111dc26 100644 --- a/components/case/summaryTypes/pinswg_listedbuildingandconservationrid.js +++ b/components/case/summaryTypes/pinswg_listedbuildingandconservationrid.js @@ -35,7 +35,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -137,7 +137,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -161,7 +161,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_maintenanceoflands217id.js b/components/case/summaryTypes/pinswg_maintenanceoflands217id.js index 97a2dd62..3ed23e25 100644 --- a/components/case/summaryTypes/pinswg_maintenanceoflands217id.js +++ b/components/case/summaryTypes/pinswg_maintenanceoflands217id.js @@ -35,7 +35,7 @@ const Pinswg_maintenanceoflands217id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_maintenanceoflands217id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_maintenanceoflands217id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_maintenanceoflands217id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -137,7 +137,7 @@ const Pinswg_maintenanceoflands217id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -161,7 +161,7 @@ const Pinswg_maintenanceoflands217id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_miscellaneouscasewordid.js b/components/case/summaryTypes/pinswg_miscellaneouscasewordid.js index 793aa1cf..b79d3303 100644 --- a/components/case/summaryTypes/pinswg_miscellaneouscasewordid.js +++ b/components/case/summaryTypes/pinswg_miscellaneouscasewordid.js @@ -35,7 +35,7 @@ const Pinswg_miscellaneouscasewordid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_miscellaneouscasewordid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_miscellaneouscasewordid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_miscellaneouscasewordid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -137,7 +137,7 @@ const Pinswg_miscellaneouscasewordid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -161,7 +161,7 @@ const Pinswg_miscellaneouscasewordid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" @@ -235,7 +235,7 @@ const Pinswg_miscellaneouscasewordid = (props) => { detailsObj.pinswg_relevantauthorityname + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : jsonpath({ path: @@ -243,7 +243,7 @@ const Pinswg_miscellaneouscasewordid = (props) => { detailsObj.pinswg_relevantauthorityname + '")].value', json: transLookup, - sandbox: {}, + eval: true, }) || t( "case:summary-no-date-entered-label" diff --git a/components/case/summaryTypes/pinswg_nonvalidationid.js b/components/case/summaryTypes/pinswg_nonvalidationid.js index 33bd1483..3d078776 100644 --- a/components/case/summaryTypes/pinswg_nonvalidationid.js +++ b/components/case/summaryTypes/pinswg_nonvalidationid.js @@ -35,7 +35,7 @@ const Pinswg_nonvalidationid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_nonvalidationid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -94,7 +94,7 @@ const Pinswg_nonvalidationid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -115,7 +115,7 @@ const Pinswg_nonvalidationid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -139,7 +139,7 @@ const Pinswg_nonvalidationid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decisionissued@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_planningappeals78id.js b/components/case/summaryTypes/pinswg_planningappeals78id.js index 9a60cc48..b70340f7 100644 --- a/components/case/summaryTypes/pinswg_planningappeals78id.js +++ b/components/case/summaryTypes/pinswg_planningappeals78id.js @@ -35,7 +35,7 @@ const Pinswg_planningappeals78id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_planningappeals78id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_planningappeals78id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_planningappeals78id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -140,7 +140,7 @@ const Pinswg_planningappeals78id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -164,7 +164,7 @@ const Pinswg_planningappeals78id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_dicision@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_planningconditionss73s79id.js b/components/case/summaryTypes/pinswg_planningconditionss73s79id.js index a89cf9ab..b34be7cd 100644 --- a/components/case/summaryTypes/pinswg_planningconditionss73s79id.js +++ b/components/case/summaryTypes/pinswg_planningconditionss73s79id.js @@ -35,7 +35,7 @@ const Pinswg_planningconditionss73s79id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_planningconditionss73s79id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_planningconditionss73s79id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_planningconditionss73s79id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -137,7 +137,7 @@ const Pinswg_planningconditionss73s79id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -161,7 +161,7 @@ const Pinswg_planningconditionss73s79id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_planningobligationappeals106id.js b/components/case/summaryTypes/pinswg_planningobligationappeals106id.js index 1b124841..389a719b 100644 --- a/components/case/summaryTypes/pinswg_planningobligationappeals106id.js +++ b/components/case/summaryTypes/pinswg_planningobligationappeals106id.js @@ -35,7 +35,7 @@ const Pinswg_planningobligationappeals106id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_planningobligationappeals106id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_planningobligationappeals106id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_planningobligationappeals106id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -137,7 +137,7 @@ const Pinswg_planningobligationappeals106id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -161,7 +161,7 @@ const Pinswg_planningobligationappeals106id = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" diff --git a/components/case/summaryTypes/pinswg_rowid.js b/components/case/summaryTypes/pinswg_rowid.js index 3c78b453..d47b0e3d 100644 --- a/components/case/summaryTypes/pinswg_rowid.js +++ b/components/case/summaryTypes/pinswg_rowid.js @@ -35,7 +35,7 @@ const Pinswg_rowid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -60,7 +60,7 @@ const Pinswg_rowid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_specialistcaseprocess@OData.Community.Display.V1.FormattedValue" @@ -82,7 +82,7 @@ const Pinswg_rowid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -118,7 +118,7 @@ const Pinswg_rowid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -139,7 +139,7 @@ const Pinswg_rowid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -160,7 +160,7 @@ const Pinswg_rowid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -184,7 +184,7 @@ const Pinswg_rowid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" @@ -258,7 +258,7 @@ const Pinswg_rowid = (props) => { detailsObj.pinswg_relevantauthorityname + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : jsonpath({ path: @@ -266,7 +266,7 @@ const Pinswg_rowid = (props) => { detailsObj.pinswg_relevantauthorityname + '")].value', json: transLookup, - sandbox: {}, + eval: true, }) || t( "case:summary-no-date-entered-label" diff --git a/components/case/summaryTypes/pinswg_transportandworkactid.js b/components/case/summaryTypes/pinswg_transportandworkactid.js index 5ca48c8a..fb4091f6 100644 --- a/components/case/summaryTypes/pinswg_transportandworkactid.js +++ b/components/case/summaryTypes/pinswg_transportandworkactid.js @@ -73,7 +73,7 @@ const Pinswg_transportandworkactid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -98,7 +98,7 @@ const Pinswg_transportandworkactid = (props) => { detailsObj.pinswg_recommendation + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj.pinswg_recommendation || t( @@ -121,7 +121,7 @@ const Pinswg_transportandworkactid = (props) => { detailsObj.pinswg_webaddress + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj.pinswg_webaddress || t( diff --git a/components/case/summaryTypes/pinswg_wayleaveid.js b/components/case/summaryTypes/pinswg_wayleaveid.js index bc3eb60e..61e4f1f3 100644 --- a/components/case/summaryTypes/pinswg_wayleaveid.js +++ b/components/case/summaryTypes/pinswg_wayleaveid.js @@ -35,7 +35,7 @@ const Pinswg_wayleaveid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -59,7 +59,7 @@ const Pinswg_wayleaveid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -95,7 +95,7 @@ const Pinswg_wayleaveid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_procedure@OData.Community.Display.V1.FormattedValue" @@ -116,7 +116,7 @@ const Pinswg_wayleaveid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" @@ -137,7 +137,7 @@ const Pinswg_wayleaveid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : casesObj[ "statuscode@OData.Community.Display.V1.FormattedValue" @@ -161,7 +161,7 @@ const Pinswg_wayleaveid = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "pinswg_decision@OData.Community.Display.V1.FormattedValue" @@ -235,7 +235,7 @@ const Pinswg_wayleaveid = (props) => { detailsObj.pinswg_relevantauthorityname + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : jsonpath({ path: @@ -243,7 +243,7 @@ const Pinswg_wayleaveid = (props) => { detailsObj.pinswg_relevantauthorityname + '")].value', json: transLookup, - sandbox: {}, + eval: true, }) || t( "case:summary-no-date-entered-label" diff --git a/components/elements/index.js b/components/elements/index.js index 5f3b594b..4f1007cb 100644 --- a/components/elements/index.js +++ b/components/elements/index.js @@ -1342,7 +1342,7 @@ const RenderPickList = ({ var dropdownObj = jsonpath({ path: "$..value[?(@.LogicalName=='" + datafieldname + "')]..Options", json: picklistData, - sandbox: {}, + eval: true, }); dropdownObj = dropdownObj[0]; @@ -1720,7 +1720,7 @@ export const FieldsTranslations = (label) => { let formObj = jsonpath({ path: "$['" + appealtypes + "']", json: fieldLookup, - sandbox: {}, + eval: true, }); let labelTrans = @@ -1728,7 +1728,7 @@ export const FieldsTranslations = (label) => { ? jsonpath({ path: '$..[?(@.value=="' + label + '")].value_cy', json: formObj, - sandbox: {}, + eval: true, })[0] : label; @@ -1747,7 +1747,7 @@ const PickListTranslations = (optionValue) => { ? jsonpath({ path: '$..[?(@.value=="' + optionValue + '")].value_cy', json: pickListLookup, - sandbox: {}, + eval: true, }) : optionValue; //console.log(optionTrans, optionValue); @@ -1947,7 +1947,7 @@ const RenderFileUpload = (field) => { const blobList = jsonpath({ path: "$..[?(@.documentType=='" + field.documentTypeCode + "')]", json: filelistObj, - sandbox: {}, + eval: true, }); //const blobList = filelistObj; diff --git a/components/myportal.js b/components/myportal.js index 9162deb8..1387da38 100644 --- a/components/myportal.js +++ b/components/myportal.js @@ -114,7 +114,7 @@ const MyPortal = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : props.accountDetails.accountDetails[ "pinswg_contact_associatedlpa@OData.Community.Display.V1.FormattedValue" diff --git a/components/myportal/advancedsearch.js b/components/myportal/advancedsearch.js index 58b95e7e..c699b893 100644 --- a/components/myportal/advancedsearch.js +++ b/components/myportal/advancedsearch.js @@ -153,7 +153,7 @@ let AdvancedSearch = (props) => { .name + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : optionsObj[key].name || t( @@ -258,7 +258,7 @@ let AdvancedSearch = (props) => { .value + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : optionsObj[key].value || t( diff --git a/components/myportal/awaitingsubmissionfromblob.js b/components/myportal/awaitingsubmissionfromblob.js index bca702d2..b327f855 100644 --- a/components/myportal/awaitingsubmissionfromblob.js +++ b/components/myportal/awaitingsubmissionfromblob.js @@ -211,7 +211,7 @@ const AwaitingSubmissionFromBlob = (props) => { ).value + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : getFormCollectionByID( showTopThreeArr[key] @@ -303,7 +303,7 @@ const AwaitingSubmissionFromBlob = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : showTopThreeArr[key][ "pinswg_lpaname" diff --git a/components/myportal/topthree.js b/components/myportal/topthree.js index 640e9c96..c039c483 100644 --- a/components/myportal/topthree.js +++ b/components/myportal/topthree.js @@ -334,7 +334,7 @@ const TopThree = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : showTopThreeArr[key][ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -406,7 +406,7 @@ const TopThree = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : showTopThreeArr[key][ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" diff --git a/components/myportal/topthree_reps.js b/components/myportal/topthree_reps.js index c60f87a1..ed48e185 100644 --- a/components/myportal/topthree_reps.js +++ b/components/myportal/topthree_reps.js @@ -275,7 +275,7 @@ const TopThree = (props) => { showTopThreeArr[key].representationType + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : showTopThreeArr[key].representationType || ""} @@ -293,7 +293,7 @@ const TopThree = (props) => { .representationCapacity + '" )].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : jsonpath({ path: @@ -302,7 +302,7 @@ const TopThree = (props) => { .representationCapacity + '")].value', json: transLookup, - sandbox: {}, + eval: true, }).length > 0 ? jsonpath({ path: @@ -311,7 +311,7 @@ const TopThree = (props) => { .representationCapacity + '")].value', json: transLookup, - sandbox: {}, + eval: true, }) : showTopThreeArr[key].representationCapacity} @@ -333,7 +333,7 @@ const TopThree = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : showTopThreeArr[key][ "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue" diff --git a/components/myportal/viewall.js b/components/myportal/viewall.js index 2cb23571..e1536b58 100644 --- a/components/myportal/viewall.js +++ b/components/myportal/viewall.js @@ -128,7 +128,7 @@ const ViewAllResults = (props) => { : item.pinswg_title) + '")]', json: searchDetailsObj, - sandbox: {}, + eval: true, }); detailsObj = detailsObj[0]; @@ -484,7 +484,7 @@ const ViewAllResults = (props) => { resultsArr[key].pinswg_lpaname + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : resultsArr[key].pinswg_lpaname || "N/A" : ""} @@ -500,7 +500,7 @@ const ViewAllResults = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : resultsArr[key][ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -518,7 +518,7 @@ const ViewAllResults = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : currentView.viewKey == "myRepresentations" ? searchDetailsObj[key].value @@ -538,7 +538,7 @@ const ViewAllResults = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : resultsArr[key][ "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue" @@ -556,7 +556,7 @@ const ViewAllResults = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, })}
@@ -574,7 +574,7 @@ const ViewAllResults = (props) => { ).value + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : getFormCollectionByID( item.pinswg_appealcasetype @@ -588,7 +588,7 @@ const ViewAllResults = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : item[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -607,7 +607,7 @@ const ViewAllResults = (props) => { ).value + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, })[0] : getFormCollectionByID( searchDetailsObj[key].appealType @@ -633,7 +633,7 @@ const ViewAllResults = (props) => { item.statuscode + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : jsonpath({ path: @@ -641,7 +641,7 @@ const ViewAllResults = (props) => { item.statuscode + '")].value', json: transLookup, - sandbox: {}, + eval: true, }) || "N/A" : currentView.viewKey == "myRepresentations" ? repRaisedDate(item.repfile_name) // ? router.locale == "cy" @@ -675,7 +675,7 @@ const ViewAllResults = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : item[ "statuscode@OData.Community.Display.V1.FormattedValue" diff --git a/components/newappeal/buildcheckrow.js b/components/newappeal/buildcheckrow.js index 374080bc..514dab18 100644 --- a/components/newappeal/buildcheckrow.js +++ b/components/newappeal/buildcheckrow.js @@ -66,7 +66,7 @@ let BuildCheckRow = (props) => { let formObj = jsonpath({ path: "$['" + appealtypes + "']", json: fieldLookup, - sandbox: {}, + eval: true, }); let labelTrans = @@ -74,7 +74,7 @@ let BuildCheckRow = (props) => { ? jsonpath({ path: '$..[?(@.value=="' + label + '")].value_cy', json: formObj, - sandbox: {}, + eval: true, }) : label; return labelTrans; @@ -107,7 +107,7 @@ let BuildCheckRow = (props) => { datafieldname[0].value + "')]", json: mandatoryFieldsData, - sandbox: {}, + eval: true, }); var documentTypeCode = xpath.select( diff --git a/components/newappeal/buildchecksection.js b/components/newappeal/buildchecksection.js index 519f5c1e..40a24ee2 100644 --- a/components/newappeal/buildchecksection.js +++ b/components/newappeal/buildchecksection.js @@ -130,7 +130,7 @@ let BuildCheckSection = (props) => { let formObj = jsonpath({ path: "$['" + appealtypes + "']", json: fieldLookup, - sandbox: {}, + eval: true, }); let labelTrans = @@ -138,7 +138,7 @@ let BuildCheckSection = (props) => { ? jsonpath({ path: '$..[?(@.value=="' + label + '")].value_cy', json: formObj, - sandbox: {}, + eval: true, }) : label; return labelTrans; diff --git a/components/newappeal/createCase.js b/components/newappeal/createCase.js index da9b9aee..73d9d36c 100644 --- a/components/newappeal/createCase.js +++ b/components/newappeal/createCase.js @@ -71,7 +71,7 @@ const RenderLPAList = ({ optionsObj[key].name + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : optionsObj[key].name} @@ -155,7 +155,7 @@ const RenderAppealTypeList = ({ optionsObj[key].value + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : optionsObj[key].value} diff --git a/components/pdftemplates/appealRow_pdf.js b/components/pdftemplates/appealRow_pdf.js index efb4e758..e1f73319 100644 --- a/components/pdftemplates/appealRow_pdf.js +++ b/components/pdftemplates/appealRow_pdf.js @@ -151,7 +151,7 @@ export const AppealRow_pdf = (props) => { let formObj = jsonpath({ path: "$['" + appealtypes + "']", json: fieldLookup, - sandbox: {}, + eval: true, }); let labelTrans = label; diff --git a/components/search/addresssearchresults.js b/components/search/addresssearchresults.js index 30918cba..c1f28c16 100644 --- a/components/search/addresssearchresults.js +++ b/components/search/addresssearchresults.js @@ -101,7 +101,7 @@ const SearchResults = (props) => { whichIncident + "')]", json: watchedCases, - sandbox: {}, + eval: true, }); return isWatched; @@ -252,7 +252,7 @@ const SearchResults = (props) => { '")]', json: searchDetailsObj, - sandbox: {}, + eval: true, }); detailsObj = detailsObj[0]; return ( @@ -468,7 +468,7 @@ const SearchResults = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : item[ "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue" @@ -486,7 +486,7 @@ const SearchResults = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : item[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -509,7 +509,7 @@ const SearchResults = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : item["pinswg_appealType"] || "N/A"} @@ -531,7 +531,7 @@ const SearchResults = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : item[ "statuscode@OData.Community.Display.V1.FormattedValue" diff --git a/components/search/advancedsearch.js b/components/search/advancedsearch.js index 3381984d..13237263 100644 --- a/components/search/advancedsearch.js +++ b/components/search/advancedsearch.js @@ -133,7 +133,7 @@ const RenderCaseStatusList = ({ .statuscode + '")].value_cy', json: optionsObj, - sandbox: {}, + eval: true, }) : optionsObj[key].value || t( @@ -248,7 +248,7 @@ let AdvancedSearch = (props) => { .name + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : optionsObj[key].name || t( @@ -353,7 +353,7 @@ let AdvancedSearch = (props) => { .value + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : optionsObj[key].value || t( diff --git a/components/search/dnssearchresults.js b/components/search/dnssearchresults.js index 7feaedc2..135910ab 100644 --- a/components/search/dnssearchresults.js +++ b/components/search/dnssearchresults.js @@ -174,7 +174,7 @@ const DNSSearchResults = (props) => { whichIncident + "')]", json: watchedCases, - sandbox: {}, + eval: true, }); return isWatched; @@ -303,7 +303,7 @@ const DNSSearchResults = (props) => { item.title + '")]', json: searchDetailsObj, - sandbox: {}, + eval: true, }); detailsObj = detailsObj[0]; @@ -466,7 +466,7 @@ const DNSSearchResults = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : detailsObj[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -490,7 +490,7 @@ const DNSSearchResults = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : item[ "statuscode@OData.Community.Display.V1.FormattedValue" diff --git a/components/search/searchresults.js b/components/search/searchresults.js index 0909da30..ccef381b 100644 --- a/components/search/searchresults.js +++ b/components/search/searchresults.js @@ -108,7 +108,7 @@ const SearchResults = (props) => { "')]", json: watchedCases, - sandbox: {}, + eval: true, }); return isWatched; @@ -248,7 +248,7 @@ const SearchResults = (props) => { item.title + '")]', json: searchDetailsObj, - sandbox: {}, + eval: true, }); detailsObj = detailsObj[0] || {}; @@ -445,7 +445,7 @@ const SearchResults = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : item[ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" @@ -468,7 +468,7 @@ const SearchResults = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : item[ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" @@ -491,7 +491,7 @@ const SearchResults = (props) => { ] + '")].value_cy', json: transLookup, - sandbox: {}, + eval: true, }) : item[ "statuscode@OData.Community.Display.V1.FormattedValue" diff --git a/components/utils/index.js b/components/utils/index.js index fb846316..a8423d1e 100644 --- a/components/utils/index.js +++ b/components/utils/index.js @@ -20,7 +20,7 @@ export const getFormCollection = (formtype) => { const collectionName = jsonpath({ path: "$..[?(@.LogicalName=='" + formtype + "')]", json: data, - sandbox: {}, + eval: true, }); return collectionName[0]; }; @@ -29,7 +29,7 @@ export const getFormCollectionByID = (appealTypeID) => { const collectionName = jsonpath({ path: "$..[?(@.appealTypeID =='" + appealTypeID + "')]", json: data, - sandbox: {}, + eval: true, }); return collectionName[0]; }; @@ -38,7 +38,7 @@ export const getFormIDByLogicalName = (appealTypeLogicalName) => { const collectionName = jsonpath({ path: "$..[?(@.LogicalName =='" + appealTypeLogicalName + "')]", json: data, - sandbox: {}, + eval: true, }); return collectionName[0]; }; @@ -47,7 +47,7 @@ export const getPickListLabel = (data, picklistType, picklistID) => { const pickListData = jsonpath({ path: "$..[?(@.LogicalName=='" + picklistType + "')]", json: data, - sandbox: {}, + eval: true, }); const pickListLabel = jsonpath({ @@ -57,7 +57,7 @@ export const getPickListLabel = (data, picklistType, picklistID) => { "')].Label.LocalizedLabels..Label", json: pickListData, - sandbox: {}, + eval: true, }); return pickListLabel[0]; }; @@ -66,7 +66,7 @@ export const getRadioLabel = (data, radiotListName, radioListID) => { const radioListData = jsonpath({ path: "$..[?(@.LogicalName=='" + radiotListName + "')]", json: data, - sandbox: {}, + eval: true, }); const pickListLabel = jsonpath({ @@ -76,7 +76,7 @@ export const getRadioLabel = (data, radiotListName, radioListID) => { "')].Label.LocalizedLabels..Label", json: radioListData, - sandbox: {}, + eval: true, }); return pickListLabel[0]; }; @@ -340,7 +340,7 @@ export const getProgressObj = ( datafieldname[0].value + "')]", json: mandatoryFieldsData, - sandbox: {}, + eval: true, }); if (datafieldname[0].value.includes("pinswg_fileUpload")) { diff --git a/pages/api/endpoint/getbasicsearch_by_address_api copy.js b/pages/api/endpoint/getbasicsearch_by_address_api copy.js index 2fdbab26..dfcd2bab 100644 --- a/pages/api/endpoint/getbasicsearch_by_address_api copy.js +++ b/pages/api/endpoint/getbasicsearch_by_address_api copy.js @@ -472,7 +472,7 @@ export default async function ApiProxy(req, res) { searchResultsObj = jsonpath({ path: "$..[?(@ && @.pinswg_name)]", json: searchResultsObj, - sandbox: {}, + eval: true, }); const getIncidentResultsObj = await Promise.all( diff --git a/pages/api/endpoint/getbasicsearch_by_address_api.js b/pages/api/endpoint/getbasicsearch_by_address_api.js index 6489114f..1a20ed52 100644 --- a/pages/api/endpoint/getbasicsearch_by_address_api.js +++ b/pages/api/endpoint/getbasicsearch_by_address_api.js @@ -564,7 +564,7 @@ export default async function ApiProxy(req, res) { searchResultsObj = jsonpath({ path: "$..[?(@ && @.pinswg_name)]", json: searchResultsObj, - sandbox: {}, + eval: true, }); searchResultsObj = searchResultsObj.filter((arr) => arr.incidentid != null); diff --git a/pages/api/endpoint/getmylpacases_api.js b/pages/api/endpoint/getmylpacases_api.js index 92be0ce1..7967ef2f 100644 --- a/pages/api/endpoint/getmylpacases_api.js +++ b/pages/api/endpoint/getmylpacases_api.js @@ -51,7 +51,7 @@ export default async function ApiProxy(req, res) { const lpaGUID = jsonpath({ path: '$..[?(@.name=="' + lpaid + '")]', json: lpaList, - sandbox: {}, + eval: true, }); //console.log( diff --git a/pages/myportal/[appealtypes].js b/pages/myportal/[appealtypes].js index 74d6d1ee..0a705538 100644 --- a/pages/myportal/[appealtypes].js +++ b/pages/myportal/[appealtypes].js @@ -79,7 +79,7 @@ let Home = (props) => { let selectedObj = jsonpath({ path: "$..[?(@.attributevalue=='" + router.query.apt + "')]", json: optionsStr, - sandbox: {}, + eval: true, }); //let optionsTitleObj = []; diff --git a/pages/newappeal/[appealtypes].js b/pages/newappeal/[appealtypes].js index e4be195a..a9ebe6ea 100644 --- a/pages/newappeal/[appealtypes].js +++ b/pages/newappeal/[appealtypes].js @@ -71,7 +71,7 @@ let Home = (props) => { let selectedObj = jsonpath({ path: "$..[?(@.attributevalue=='" + router.query.apt + "')]", json: optionsStr, - sandbox: {}, + eval: true, }); //let optionsTitleObj = [];