From 021cd9375c8d0293629cf8ecf277d962e101e965 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Tue, 7 Jan 2025 06:36:19 +0000 Subject: [PATCH] questionnaire defect 18 --- components/case/representation/index.js | 9 +++++++++ components/pdftemplates/lpaQuestionnaire_pdf.js | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/components/case/representation/index.js b/components/case/representation/index.js index 957783b8..f4d482bd 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -887,6 +887,13 @@ let MakeRepresentation = (props) => { window.scrollTo({ top: 0, behavior: "smooth" }); values = setRepFileName(values); + !values.hasOwnProperty("pinswg_lpareference") && + Object.assign(values, { + "pinswg_lpareference": + searchResultsObj.searchResultsObj.value[0] + .pinswg_lpareference, + }); + //console.log("onHandleSubmit form values - ", JSON.stringify(values)); const buildFileArray = []; @@ -1196,7 +1203,9 @@ let MakeRepresentation = (props) => { setShowQuestionnaireSection={ setShowQuestionnaireSection } + showQuestionnaireSection={showQuestionnaireSection} props={props} + questionnaireCount={questionnaireCount} /> ) : ( <> diff --git a/components/pdftemplates/lpaQuestionnaire_pdf.js b/components/pdftemplates/lpaQuestionnaire_pdf.js index 24e2af95..d86ee469 100644 --- a/components/pdftemplates/lpaQuestionnaire_pdf.js +++ b/components/pdftemplates/lpaQuestionnaire_pdf.js @@ -203,7 +203,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => { )} - {values.lpaRef || " "} + {values.pinswg_lpareference || " "}