diff OrthancServer/Search/DatabaseLookup.cpp @ 3182:5d51f87d8326

Fix regression if calling "/tools/find" with the tag "ModalitiesInStudy"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 31 Jan 2019 17:39:14 +0100
parents 683d572424b6
children cf8cbeb35f33
line wrap: on
line diff
--- a/OrthancServer/Search/DatabaseLookup.cpp	Thu Jan 31 15:33:27 2019 +0100
+++ b/OrthancServer/Search/DatabaseLookup.cpp	Thu Jan 31 17:39:14 2019 +0100
@@ -172,7 +172,8 @@
                       (tag, ConstraintType_SmallerOrEqual, upper, caseSensitive, mandatoryTag));
       }
     }
-    else if (dicomQuery.find('\\') != std::string::npos)
+    else if (tag == DICOM_TAG_MODALITIES_IN_STUDY ||
+             dicomQuery.find('\\') != std::string::npos)
     {
       DicomTag fixedTag(tag);