# HG changeset patch # User Sebastien Jodogne # Date 1548952754 -3600 # Node ID 5d51f87d83267e841577f4d330fea2089ed1f976 # Parent 6fd38327e777f4e5a9f658362f5c7b3f0f3f02c1 Fix regression if calling "/tools/find" with the tag "ModalitiesInStudy" diff -r 6fd38327e777 -r 5d51f87d8326 NEWS --- a/NEWS Thu Jan 31 15:33:27 2019 +0100 +++ b/NEWS Thu Jan 31 17:39:14 2019 +0100 @@ -24,6 +24,7 @@ Maintenance ----------- +* Fix regression if calling "/tools/find" with the tag "ModalitiesInStudy" * Fix build with unpatched versions of Civetweb (missing "mg_disable_keep_alive()") * Fix issue #130 (Orthanc failed to start when /tmp partition was full) diff -r 6fd38327e777 -r 5d51f87d8326 OrthancServer/Search/DatabaseLookup.cpp --- 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);