From 81619715fff38463bb5afa39bbe23207ffd9c676 Mon Sep 17 00:00:00 2001 From: Randy Woods Date: Mon, 11 Dec 2023 10:14:11 -0700 Subject: [PATCH] Give better 'title' to untitled docs in report --- .../Reports/ReportsDataBusiness.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/CSETWebApi/CSETWeb_Api/CSETWebCore.Business/Reports/ReportsDataBusiness.cs b/CSETWebApi/CSETWeb_Api/CSETWebCore.Business/Reports/ReportsDataBusiness.cs index 8475d6a36e..ba8d4af998 100644 --- a/CSETWebApi/CSETWeb_Api/CSETWebCore.Business/Reports/ReportsDataBusiness.cs +++ b/CSETWebApi/CSETWeb_Api/CSETWebCore.Business/Reports/ReportsDataBusiness.cs @@ -1243,11 +1243,18 @@ public List GetDocumentLibrary() select a; foreach (var doc in docs) { - list.Add(new DocumentLibraryTable() + var dlt = new DocumentLibraryTable() { DocumentTitle = doc.Title, FileName = doc.Path - }); + }; + + if (dlt.DocumentTitle == "click to edit title") + { + dlt.DocumentTitle = "(untitled)"; + } + + list.Add(dlt); } return list;