From 89c14084f579664ab6c5c417957e3f4d6e36cea8 Mon Sep 17 00:00:00 2001 From: Gary Sharp Date: Sun, 19 Oct 2025 19:11:00 +1100 Subject: [PATCH] fix #181 - explicitly fetch `DeviceComments` when showing a device --- Disco.Web/Controllers/DeviceController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Disco.Web/Controllers/DeviceController.cs b/Disco.Web/Controllers/DeviceController.cs index ecb85fcf..a15c3f89 100644 --- a/Disco.Web/Controllers/DeviceController.cs +++ b/Disco.Web/Controllers/DeviceController.cs @@ -233,6 +233,7 @@ namespace Disco.Web.Controllers .Include(d => d.AssignedUser.UserFlagAssignments) .Include(d => d.AssignedUser.UserDetails) .Include(d => d.DeviceCertificates) + .Include(d => d.DeviceComments.Select(c => c.TechUser)) .Include(d => d.DeviceAttachments.Select(a => a.TechUser)) .Include(d => d.DeviceAttachments.Select(a => a.DocumentTemplate)) .Include(d => d.DeviceFlagAssignments.Select(a => a.DeviceFlag))