diff --git a/source/backend/dal/Repositories/DocumentQueueRepository.cs b/source/backend/dal/Repositories/DocumentQueueRepository.cs index 0b8f76c4cc..b97b670b01 100644 --- a/source/backend/dal/Repositories/DocumentQueueRepository.cs +++ b/source/backend/dal/Repositories/DocumentQueueRepository.cs @@ -62,6 +62,7 @@ public PimsDocumentQueue Update(PimsDocumentQueue queuedDocument, bool removeDoc } queuedDocument.MayanError = queuedDocument.MayanError?.Truncate(4000); + queuedDocument.DataSourceTypeCode = existingQueuedDocument.DataSourceTypeCode; // Do not allow the data source to be updated. Context.Entry(existingQueuedDocument).CurrentValues.SetValues(queuedDocument); queuedDocument = Context.Update(queuedDocument).Entity; @@ -92,6 +93,7 @@ public IEnumerable GetAllByFilter(DocumentQueueFilter filter) .Include(dq => dq.DocumentNavigation) .ThenInclude(d => d.DocumentType) .Include(dq => dq.DocumentQueueStatusTypeCodeNavigation) + .Include(dq => dq.DataSourceTypeCodeNavigation) .Where(q => true); if (filter.DataSourceTypeCode != null)