diff --git a/components/myportal/topthree.js b/components/myportal/topthree.js
index 9d61d7fc..07438548 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
}
@@ -239,9 +239,8 @@ const TopThree = (props) => {
: showTopThreeArr[key][
"_pinswg_case_value@OData.Community.Display.V1.FormattedValue"
]
- : showTopThreeArr[key][
- "_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
- ],
+ : showTopThreeArr[key]
+ .ticketnumber,
"currentType": topThreeType,
"incidentid": getIncidentId(
@@ -255,7 +254,8 @@ const TopThree = (props) => {
});
}}
>
- {topThreeType != "watchedCases"
+ {showTopThreeArr[key].pinswg_title}
+ {/* {topThreeType != "watchedCases"
? topThreeType != "myRepresentations"
? showTopThreeArr[key].ticketnumber
: showTopThreeArr[key][
@@ -263,7 +263,7 @@ const TopThree = (props) => {
]
: showTopThreeArr[key][
"_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
- ]}{" "}
+ ]}{" "} */}
)}
{topThreeType == "watchedCases" && !props.myReps && (
diff --git a/components/search/addresssearchresults.js b/components/search/addresssearchresults.js
index 51fb4479..86310831 100644
--- a/components/search/addresssearchresults.js
+++ b/components/search/addresssearchresults.js
@@ -247,8 +247,8 @@ const SearchResults = (props) => {
resultsArrPaged.map((item, key) => {
let detailsObj = jsonpath({
path:
- '$..value[?(@ && @.pinswg_name=="' +
- item.pinswg_name +
+ '$..value[?(@ && @.ticketnumber=="' +
+ item.ticketnumber +
'")]',
json: searchDetailsObj,
diff --git a/components/search/dnssearchresults.js b/components/search/dnssearchresults.js
index 787f5c91..2a978b21 100644
--- a/components/search/dnssearchresults.js
+++ b/components/search/dnssearchresults.js
@@ -31,6 +31,8 @@ import {
setWatchedCasesDetails,
} from "../../store/watchedCases/action";
import { getDetailsProxy, getSearchDetailsPaged } from "../utils";
+import RepsOnResults from "./repsonresults";
+import { signIn, useSession } from "next-auth/react";
const DNSSearchResults = (props) => {
const {
@@ -48,11 +50,13 @@ const DNSSearchResults = (props) => {
setWatchedCases,
setWatchedCasesDetails,
showMap,
+ showLoginCheck,
} = props;
let { t } = useTranslation();
const router = useRouter();
const { locale } = router;
+ const { data: session } = useSession();
var resultsArr = searchResultsObj.value || [];
@@ -299,8 +303,8 @@ const DNSSearchResults = (props) => {
resultsArr.map((item, key) => {
let detailsObj = jsonpath({
path:
- '$..value[?(@ && @.pinswg_name=="' +
- item.title +
+ '$..value[?(@ && @.ticketnumber=="' +
+ item.ticketnumber +
'")]',
json: searchDetailsObj,
eval: true,
@@ -339,6 +343,8 @@ const DNSSearchResults = (props) => {
"appealType":
item.pinswg_appealcasetype,
"showMap": showMap,
+ "showLoginCheck":
+ props.showLoginCheck,
});
}}
>
@@ -350,6 +356,9 @@ const DNSSearchResults = (props) => {
{item.title}
+