diff --git a/components/case.js b/components/case.js
index 19631bbe..6d98d253 100644
--- a/components/case.js
+++ b/components/case.js
@@ -27,6 +27,7 @@ const Case = (props) => {
watchedCasesDetails={props.watchedCasesDetails}
awaitingSubmission={props.awaitingSubmission}
caseReference={props.caseReference}
+ ticketnumber={props.ticketnumber}
currentType={props.currentType}
appealTypeID={props.appealTypeID}
searchResultsObj={props.searchResultsObj}
diff --git a/components/case/representation/index.js b/components/case/representation/index.js
index bec951e1..894a7586 100644
--- a/components/case/representation/index.js
+++ b/components/case/representation/index.js
@@ -790,6 +790,7 @@ let MakeRepresentation = (props) => {
"caseRef": props.props.currentView.caseReference.currentReference,
"casereference":
props.props.currentView.caseReference.currentReference,
+ "ticketnumber": props.props.currentView.caseReference.ticketnumber,
"pinswg_questionnaireduedate":
detailsObj.pinswg_questionnaireduedate,
"pinswg_statementduedate":
@@ -858,6 +859,7 @@ let MakeRepresentation = (props) => {
props.props.currentView.caseReference.repDetails.appealType,
"casereference":
props.props.currentView.caseReference.currentReference,
+ "ticketnumber": props.props.currentView.caseReference.ticketnumber,
"incidentID":
props.props.currentView.caseReference.incidentid ||
props.props.currentView.caseReference.repDetails.incidentid,
@@ -974,6 +976,8 @@ let MakeRepresentation = (props) => {
props.props.currentView.caseReference.currentReference,
"casereference":
props.props.currentView.caseReference.currentReference,
+ "ticketnumber":
+ props.props.currentView.caseReference.ticketnumber,
"pinswg_questionnaireduedate":
detailsObj.pinswg_questionnaireduedate,
"pinswg_endofrepresentationperiod":
@@ -1090,7 +1094,7 @@ let MakeRepresentation = (props) => {
generateRepPDF(
values,
props.props.accountDetails.containerID,
- currentView.caseReference.currentReference
+ currentView.caseReference.ticketnumber
).then((data) => {
console.log(data);
data.status == "success" &&
@@ -1169,7 +1173,7 @@ let MakeRepresentation = (props) => {
dataObj,
[{}],
values.containerID,
- props.caseReference + "/" + dataObj.repfile_name
+ props.ticketnumber + "/" + dataObj.repfile_name
).then((data) => {
return data;
});
diff --git a/components/case/representation/representationAgent.js b/components/case/representation/representationAgent.js
index 6e13b87e..b84619a4 100644
--- a/components/case/representation/representationAgent.js
+++ b/components/case/representation/representationAgent.js
@@ -196,7 +196,7 @@ const RepAgent = (props) => {
"myrepresentations:add-files-label"
)}
ticketnumber={
- props.props.caseReference
+ props.props.ticketnumber
}
hint={"sdsd"}
fileList={
diff --git a/components/case/representation/representationAppellant.js b/components/case/representation/representationAppellant.js
index 5dc66794..a951c831 100644
--- a/components/case/representation/representationAppellant.js
+++ b/components/case/representation/representationAppellant.js
@@ -188,7 +188,7 @@ const RepAppellant = (props) => {
label={t(
"myrepresentations:add-files-label"
)}
- ticketnumber={props.props.caseReference}
+ ticketnumber={props.props.ticketnumber}
hint={"sdsd"}
fileList={
props.currentView.fileList
diff --git a/components/case/representation/representationComplete.js b/components/case/representation/representationComplete.js
index 0bfa4b12..4e8791c2 100644
--- a/components/case/representation/representationComplete.js
+++ b/components/case/representation/representationComplete.js
@@ -65,7 +65,7 @@ const RepComplete = (props) => {
),
sendRepCompleteMessage(
props.props.props.props.accountDetails.containerID,
- props.props.currentView.caseReference.currentReference,
+ props.props.currentView.caseReference.ticketnumber,
props.repFormData.repfile_name
),
sendEmail(templateId, emailAddress, personalisation, reference),
diff --git a/components/case/representation/representationInterestedPartyPerson.js b/components/case/representation/representationInterestedPartyPerson.js
index 11c3cca6..cf770d99 100644
--- a/components/case/representation/representationInterestedPartyPerson.js
+++ b/components/case/representation/representationInterestedPartyPerson.js
@@ -188,7 +188,7 @@ const RepInterestedPartyPerson = (props) => {
"myrepresentations:add-files-label"
)}
ticketnumber={
- props.props.caseReference
+ props.props.ticketnumber
}
hint={"sdsd"}
fileList={
diff --git a/components/case/representation/representationLPA.js b/components/case/representation/representationLPA.js
index 9818fe09..c540b0ce 100644
--- a/components/case/representation/representationLPA.js
+++ b/components/case/representation/representationLPA.js
@@ -353,7 +353,7 @@ let RepLPA = (props) => {
"myrepresentations:add-files-label"
)}
ticketnumber={
- props.props.caseReference
+ props.props.ticketnumber
}
hint={"sdsd"}
fileList={
diff --git a/components/case/representation/representationLandowner.js b/components/case/representation/representationLandowner.js
index 8029b788..b6fe247b 100644
--- a/components/case/representation/representationLandowner.js
+++ b/components/case/representation/representationLandowner.js
@@ -84,7 +84,7 @@ const RepLandOwner = (props) => {
label={t(
"myrepresentations:add-files-label"
)}
- ticketnumber={props.props.caseReference}
+ ticketnumber={props.props.ticketnumber}
hint={"sdsd"}
fileList={[]}
setFilesForRepresentation={[]}
diff --git a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js
index d8fdfbe0..c9c9e594 100644
--- a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js
+++ b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js
@@ -1213,7 +1213,7 @@ let Enforcement_Questionnaire = (props) => {
name={"representationDocuments"}
id={"representationDocuments"}
label={t("myrepresentations:add-files-label")}
- ticketnumber={props.props.props.caseReference}
+ ticketnumber={props.props.props.ticketnumber}
hint={"sdsd"}
fileList={
props.currentView.fileList
diff --git a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js
index ae86e2b8..e5c089bd 100644
--- a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js
+++ b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js
@@ -1022,7 +1022,7 @@ let S78_Questionnaire = (props) => {
name={"representationDocuments"}
id={"representationDocuments"}
label={t("myrepresentations:add-files-label")}
- ticketnumber={props.props.props.caseReference}
+ ticketnumber={props.props.props.ticketnumber}
hint={"sdsd"}
fileList={
props.currentView.fileList
diff --git a/components/case/summary.js b/components/case/summary.js
index c39190c1..66c85cc2 100644
--- a/components/case/summary.js
+++ b/components/case/summary.js
@@ -85,6 +85,7 @@ const CaseSummary = (props) => {
currentView,
messagesObj,
docsOffline,
+ ticketnumber,
} = props;
const showLoginCheck =
@@ -194,7 +195,7 @@ const CaseSummary = (props) => {
}))
: currentType == "directResultsObj"
? (casesObj = jsonpath({
- path: '$..[?(@ && @.ticketnumber=="' + caseReference + '")]',
+ path: '$..[?(@ && @.ticketnumber=="' + ticketnumber + '")]',
json: setCaseQueryObj,
eval: true,
}))
@@ -472,7 +473,7 @@ const CaseSummary = (props) => {
? casesObj.pinswg_title
: currentType ==
"directResultsObj"
- ? detailsObj.pinswg_name
+ ? casesObj.ticketnumber
: casesObj.reference,
},
}}
diff --git a/components/myportal/topthree.js b/components/myportal/topthree.js
index 9d61d7fc..88443468 100644
--- a/components/myportal/topthree.js
+++ b/components/myportal/topthree.js
@@ -207,11 +207,11 @@ const TopThree = (props) => {
showTopThreeArr[key].incidentid
: router.locale == "cy"
? "/fymhorth/achos/" +
- showTopThreeArr[key].pinswg_title +
+ showTopThreeArr[key].ticketnumber +
"?key=" +
topThreeType
: "/myportal/case/" +
- showTopThreeArr[key].pinswg_title +
+ showTopThreeArr[key].ticketnumber +
"?key=" +
topThreeType
}
@@ -257,7 +257,9 @@ const TopThree = (props) => {
>
{topThreeType != "watchedCases"
? topThreeType != "myRepresentations"
- ? showTopThreeArr[key].ticketnumber
+ ? topThreeType == "mySubmittedReps"
+ ? showTopThreeArr[key].pinswg_title
+ : showTopThreeArr[key].ticketnumber
: showTopThreeArr[key][
"_pinswg_case_value@OData.Community.Display.V1.FormattedValue"
]
diff --git a/components/myportal/topthree_reps.js b/components/myportal/topthree_reps.js
index 1b9ab569..39ee1c83 100644
--- a/components/myportal/topthree_reps.js
+++ b/components/myportal/topthree_reps.js
@@ -201,7 +201,7 @@ const TopThree = (props) => {
? "/fymhorth/representation"
: "/myportal/representation",
query: {
- case: showTopThreeArr[key].caseRef,
+ case: showTopThreeArr[key].ticketnumber,
state: "edit",
created:
showTopThreeArr[key].repfile_name,
diff --git a/components/myportal/viewall.js b/components/myportal/viewall.js
index 8301e9e1..06686339 100644
--- a/components/myportal/viewall.js
+++ b/components/myportal/viewall.js
@@ -268,6 +268,9 @@ const ViewAllResults = (props) => {
? currentView.viewKey ==
"myRepresentations"
? resultsArr[key].caseRef
+ : currentView.viewKey ==
+ "mySubmittedReps"
+ ? resultsArr[key].pinswg_title
: resultsArr[key].ticketnumber
: resultsArr[key][
"_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
diff --git a/components/representation.js b/components/representation.js
index 418f80ac..77ebb8c7 100644
--- a/components/representation.js
+++ b/components/representation.js
@@ -22,6 +22,7 @@ const CaseRepresentation = (props) => {
watchedCases={props.watchedCases}
awaitingSubmission={props.awaitingSubmission}
caseReference={props.caseReference}
+ ticketnumber={props.ticketnumber}
currentType={props.currentType}
searchResultsObj={props.searchResultsObj}
searchDetailsObj={props.searchDetailsObj}
diff --git a/components/search/dnssearchresults.js b/components/search/dnssearchresults.js
index 787f5c91..6afce67f 100644
--- a/components/search/dnssearchresults.js
+++ b/components/search/dnssearchresults.js
@@ -7,6 +7,7 @@ import { useCallback, useEffect, useState } from "react";
import { connect } from "react-redux";
import transLookup from "../../data/lookuptranslations.json";
import PaginationControl from "./pagination";
+import RepsOnResults from "./repsonresults";
import { getBasicDNSSearchPaged } from "../../actions";
@@ -350,6 +351,9 @@ const DNSSearchResults = (props) => {
{item.title}
+