diff --git a/components/case/representation/index.js b/components/case/representation/index.js index fe53112c..fcba40bf 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -62,6 +62,7 @@ let MakeRepresentation = (props) => { showQuestionnaireSection, initialValues, setCurrentReference, + ticketnumber, } = props; const formObj = props.props.form; let setCaseQueryObj = props[currentType] || {}; @@ -458,6 +459,7 @@ let MakeRepresentation = (props) => { setSubmitBack={setSubmitBack} props={props} caseReference={caseReference} + ticketnumber={ticketnumber} setRepFileName={setRepFileName} updateRepresentation={updateRepresentation} setSavingStatus={setSavingStatus} diff --git a/components/case/representation/representationLPACapacitySelection.js b/components/case/representation/representationLPACapacitySelection.js index bfc2260e..47122ad9 100644 --- a/components/case/representation/representationLPACapacitySelection.js +++ b/components/case/representation/representationLPACapacitySelection.js @@ -34,6 +34,7 @@ let RepLPACapacitySelection = (props) => { casesObj={casesObj} detailsObj={detailsObj} caseReference={props.props.caseReference} + ticketnumber={props.props.ticketnumber} searchResultsObj={props.props.searchResultsObj} props={props.props} />{" "} diff --git a/components/case/representation/representationLPADetails.js b/components/case/representation/representationLPADetails.js index 55c19618..1015f95e 100644 --- a/components/case/representation/representationLPADetails.js +++ b/components/case/representation/representationLPADetails.js @@ -8,7 +8,7 @@ const RepLPADetails = (props) => { const router = useRouter(); const { locale } = router; - const { currentType, casesObj, caseReference } = props; + const { currentType, casesObj, caseReference, ticketnumber } = props; let setCaseDetailsObj = router.query.hasOwnProperty("state") ? router.query.state == "edit" @@ -21,7 +21,7 @@ const RepLPADetails = (props) => { var detailsObj = {}; detailsObj = jsonpath({ - path: '$..[?(@ && @.pinswg_name=="' + caseReference + '")]', + path: '$..[?(@ && @.ticketnumber=="' + ticketnumber + '")]', json: setCaseDetailsObj, eval: true, });