comparison 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
comparison
equal deleted inserted replaced
3181:6fd38327e777 3182:5d51f87d8326
170 { 170 {
171 AddConstraint(new DicomTagConstraint 171 AddConstraint(new DicomTagConstraint
172 (tag, ConstraintType_SmallerOrEqual, upper, caseSensitive, mandatoryTag)); 172 (tag, ConstraintType_SmallerOrEqual, upper, caseSensitive, mandatoryTag));
173 } 173 }
174 } 174 }
175 else if (dicomQuery.find('\\') != std::string::npos) 175 else if (tag == DICOM_TAG_MODALITIES_IN_STUDY ||
176 dicomQuery.find('\\') != std::string::npos)
176 { 177 {
177 DicomTag fixedTag(tag); 178 DicomTag fixedTag(tag);
178 179
179 if (tag == DICOM_TAG_MODALITIES_IN_STUDY) 180 if (tag == DICOM_TAG_MODALITIES_IN_STUDY)
180 { 181 {