Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancRestApi/OrthancRestArchive.cpp @ 5403:05cb668c5f3f
fix to keep backward behaviour when exporting a series archive
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 17 Oct 2023 06:46:32 +0200 |
parents | fc604681e6be |
children | c65e036d649b |
comparison
equal
deleted
inserted
replaced
5402:bd3bae1525dd | 5403:05cb668c5f3f |
---|---|
625 else | 625 else |
626 { | 626 { |
627 extended = false; | 627 extended = false; |
628 } | 628 } |
629 | 629 |
630 std::unique_ptr<ArchiveJob> job(new ArchiveJob(context, IS_MEDIA, extended, LEVEL)); | 630 std::unique_ptr<ArchiveJob> job(new ArchiveJob(context, IS_MEDIA, extended, (LEVEL == ResourceType_Patient ? ResourceType_Patient : ResourceType_Study))); // use patient info from study except when exporting a patient |
631 job->AddResource(id, true, LEVEL); | 631 job->AddResource(id, true, LEVEL); |
632 | 632 |
633 if (call.HasArgument(TRANSCODE)) | 633 if (call.HasArgument(TRANSCODE)) |
634 { | 634 { |
635 job->SetTranscode(GetTransferSyntax(call.GetArgument(TRANSCODE, ""))); | 635 job->SetTranscode(GetTransferSyntax(call.GetArgument(TRANSCODE, ""))); |