changeset 1346:911a1ad5ebe8

re-fix issue #30
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 20 Apr 2015 17:26:02 +0200
parents c90a4a42a3f2
children 60cc0ee61edb
files OrthancServer/OrthancFindRequestHandler.cpp
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/OrthancFindRequestHandler.cpp	Wed Apr 08 17:33:07 2015 +0200
+++ b/OrthancServer/OrthancFindRequestHandler.cpp	Mon Apr 20 17:26:02 2015 +0200
@@ -205,8 +205,14 @@
     for (size_t i = 0; i < query.GetSize(); i++)
     {
       // Fix issue 30 (QR response missing "Query/Retrieve Level" (008,0052))
-      /*if (query.GetElement(i).GetTag() != DICOM_TAG_QUERY_RETRIEVE_LEVEL &&
-        query.GetElement(i).GetTag() != DICOM_TAG_SPECIFIC_CHARACTER_SET)*/
+      if (query.GetElement(i).GetTag() == DICOM_TAG_QUERY_RETRIEVE_LEVEL)
+      {
+        result.SetValue(query.GetElement(i).GetTag(), query.GetElement(i).GetValue());
+      }
+      else if (query.GetElement(i).GetTag() == DICOM_TAG_SPECIFIC_CHARACTER_SET)
+      {
+      }
+      else
       {
         std::string tag = query.GetElement(i).GetTag().Format();
         std::string value;