Skip to content

Commit

Permalink
Give better 'title' to untitled docs in report
Browse files Browse the repository at this point in the history
  • Loading branch information
randywoods1 committed Dec 11, 2023
1 parent 28c1a34 commit 8161971
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1243,11 +1243,18 @@ public List<DocumentLibraryTable> 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;
Expand Down

0 comments on commit 8161971

Please sign in to comment.