bug: importing a PDF attachment fails if the template or target no longer exist
This commit is contained in:
@@ -65,7 +65,6 @@ namespace Disco.Services.Documents.AttachmentImport
|
|||||||
page.WriteThumbnailSessionCache();
|
page.WriteThumbnailSessionCache();
|
||||||
DocumentsLog.LogImportPageImageUpdate(SessionId, pageNumber);
|
DocumentsLog.LogImportPageImageUpdate(SessionId, pageNumber);
|
||||||
var identifier = page.Identifier;
|
var identifier = page.Identifier;
|
||||||
DocumentsLog.LogImportPageDetected(SessionId, pageNumber, identifier.DocumentTemplate.Id, identifier.DocumentTemplate.Description, identifier.DocumentTemplate.Scope, identifier.Target.AttachmentReferenceId, identifier.Target.ToString());
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user