From 81bd6ccd83e4d4d41fdedc8765d070b07787bc84 Mon Sep 17 00:00:00 2001 From: Gary Sharp Date: Wed, 7 Sep 2022 18:08:28 +1000 Subject: [PATCH] bug: importing a PDF attachment fails if the template or target no longer exist --- Disco.Services/Documents/AttachmentImport/Importer.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Disco.Services/Documents/AttachmentImport/Importer.cs b/Disco.Services/Documents/AttachmentImport/Importer.cs index 0c2ad7ad..4be8b0a6 100644 --- a/Disco.Services/Documents/AttachmentImport/Importer.cs +++ b/Disco.Services/Documents/AttachmentImport/Importer.cs @@ -65,7 +65,6 @@ namespace Disco.Services.Documents.AttachmentImport page.WriteThumbnailSessionCache(); DocumentsLog.LogImportPageImageUpdate(SessionId, pageNumber); var identifier = page.Identifier; - DocumentsLog.LogImportPageDetected(SessionId, pageNumber, identifier.DocumentTemplate.Id, identifier.DocumentTemplate.Description, identifier.DocumentTemplate.Scope, identifier.Target.AttachmentReferenceId, identifier.Target.ToString()); } else {