Mercurial > hg > orthanc
diff OrthancServer/Sources/ServerContext.cpp @ 5670:56859a7ffa99 find-refactoring
integration mainline->find-refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 06 Jul 2024 01:04:25 +0200 |
parents | 3f13db27b399 f690568f0325 |
children | fd4c5e064cbe |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.cpp Thu Jul 04 21:57:39 2024 +0200 +++ b/OrthancServer/Sources/ServerContext.cpp Sat Jul 06 01:04:25 2024 +0200 @@ -2608,7 +2608,13 @@ Toolbox::GetMissingsFromSet(missingTags, requestedTags, retrievedTags); // if all possible tags have been read, no need to get them from DB anymore - if (missingTags.size() == 0 || DicomMap::HasOnlyComputedTags(missingTags)) + if (missingTags.size() > 0 && DicomMap::HasOnlyComputedTags(missingTags)) + { + resource.missingRequestedTags_ = missingTags; + ComputeTags(resource, *this, publicId, level, requestedTags); + return true; + } + else if (missingTags.size() == 0) { expandFlags = static_cast<ExpandResourceFlags>(expandFlags & ~ExpandResourceFlags_IncludeMainDicomTags); }