diff OrthancServer/Sources/Database/Compatibility/GenericFind.cpp @ 5621:732ec9feeea8 find-refactoring

introduction of FindRequest::ChildrenRetrieveSpecification
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 11 May 2024 15:43:07 +0200
parents 1864b16bc7b1
children 3f13db27b399
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/Compatibility/GenericFind.cpp	Sat May 11 15:11:22 2024 +0200
+++ b/OrthancServer/Sources/Database/Compatibility/GenericFind.cpp	Sat May 11 15:43:07 2024 +0200
@@ -410,8 +410,10 @@
         }
       }
 
-      if (request.IsRetrieveChildrenIdentifiers())
+      if (request.GetLevel() != ResourceType_Instance &&
+          request.GetChildrenRetrieveSpecification(GetChildResourceType(request.GetLevel())).IsRetrieveIdentifiers())
       {
+        // TODO-FIND: Retrieve other levels than immediate children
         std::list<std::string> children;
         transaction_.GetChildrenPublicId(children, internalId);