File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed
LearningHub.Nhs.WebUI/Views/MyLearning
WebAPI/LearningHub.Nhs.Database/Stored Procedures/Resources Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 130130 <td class =" no-wrap" >@activity.Version </td >
131131 <td class =" no-wrap" >@ViewActivityHelper.GetResourceTypeText(activity) </td >
132132 <td class =" no-wrap" >
133- @ViewActivityHelper.GetActivityStatus (activity)
133+ @ViewActivityHelper.GetActivityStatusText (activity)
134134 </td >
135135 </tr >
136136 }
Original file line number Diff line number Diff line change 12161216 <span class =" nhsuk-table-responsive__heading summaryTableHead" >Last Date Completed </span >@Model.ActivityDetailedItemViewModel.ActivityDate.ToString( " dd/MM/yyyy" )
12171217 </td >
12181218 <td role =" cell" class =" nhsuk-table__cell nhsuk-u-padding-left-3 nhsuk-u-padding-top-2 nhsuk-u-padding-right-2 summarytabledetailscells" >
1219- <span class =" nhsuk-table-responsive__heading summaryTableHead" >Overall Status </span >@ViewActivityHelper.GetActivityStatus (Model.ActivityDetailedItemViewModel)
1219+ <span class =" nhsuk-table-responsive__heading summaryTableHead" >Overall Status </span >@ViewActivityHelper.GetActivityStatusText (Model.ActivityDetailedItemViewModel)
12201220 </td >
12211221
12221222 </tr >
13991399 <span class =" nhsuk-table-responsive__heading" >Last Date Completed </span >@Model.ActivityDetailedItemViewModel.ActivityDate.ToString( " dd/MM/yyyy" )
14001400 </td >
14011401 <td role =" cell" class =" nhsuk-table__cell nhsuk-u-padding-left-3 nhsuk-u-padding-top-2 nhsuk-u-padding-right-2" >
1402- <span class =" nhsuk-table-responsive__heading" >Overall Status </span >@ViewActivityHelper.GetActivityStatus (Model.ActivityDetailedItemViewModel)
1402+ <span class =" nhsuk-table-responsive__heading" >Overall Status </span >@ViewActivityHelper.GetActivityStatusText (Model.ActivityDetailedItemViewModel)
14031403 </td >
14041404
14051405 </tr >
Original file line number Diff line number Diff line change 66-- Modification History
77--
88-- 22-08-2025 Tobi Initial Revision
9+ -- 16-09-2025 Tobi Added null check for ResourceReferenceID
910-- -----------------------------------------------------------------------------
1011CREATE PROCEDURE [resources].[GetUsercertificateDetails]
1112 @UserId INT ,
@@ -74,16 +75,16 @@ BEGIN
7475 rv .Id ,
7576 rv .Title ,
7677 r .ResourceTypeId ,
77- (
78- SELECT TOP (1 ) rr .OriginalResourceReferenceId
79- FROM resources .ResourceReference rr
80- JOIN hierarchy .NodePath np
81- ON np .Id = rr .NodePathId
82- AND np .NodeId = n .Id
83- AND np .Deleted = 0
84- WHERE rr .ResourceId = rv .ResourceId
85- AND rr .Deleted = 0
86- ) AS ResourceReferenceID,
78+ COALESCE ( (
79+ SELECT TOP (1 ) rr .OriginalResourceReferenceId
80+ FROM resources .ResourceReference rr
81+ JOIN hierarchy .NodePath np
82+ ON np .Id = rr .NodePathId
83+ AND np .NodeId = n .Id
84+ AND np .Deleted = 0
85+ WHERE rr .ResourceId = rv .ResourceId
86+ AND rr .Deleted = 0
87+ ), ' ' ) AS ResourceReferenceID,
8788 rv .MajorVersion ,
8889 rv .MinorVersion ,
8990 COALESCE (ra .ActivityEnd , ra .ActivityStart ) AS AwardedDate,
You can’t perform that action at this time.
0 commit comments