Added a line which is missed while optimizing

This commit is contained in:
ashutosh.nehete 2025-07-03 11:32:06 +05:30
parent 62eb914456
commit a303625d59

View File

@ -182,6 +182,11 @@ namespace Marco.Pms.Services.Controllers
var source = task != null ? "Report" : comment != null ? "Comment" : "";
var uploadedBy = task?.ReportedBy ?? comment?.Employee;
if (comment != null)
{
task = tasks.FirstOrDefault(t => t.Id == comment.TaskAllocationId);
}
var workItem = workItems.FirstOrDefault(w => w.Id == task?.WorkItemId);
var workArea = workAreas.FirstOrDefault(wa => wa.Id == workItem?.WorkAreaId);
var floor = floors.FirstOrDefault(f => f.Id == workArea?.FloorId);