diff OrthancServer/OrthancRestApi.cpp @ 317:6253c70b197b

fixes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 21 Dec 2012 17:51:17 +0100
parents d526ac73c886
children 47a709e22d1f
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi.cpp	Fri Dec 21 17:27:16 2012 +0100
+++ b/OrthancServer/OrthancRestApi.cpp	Fri Dec 21 17:51:17 2012 +0100
@@ -1262,21 +1262,21 @@
       if (isNewSeries)
       {
         context.GetIndex().SetMetadata
-          (modifiedHasher.HashSeries(), MetadataType_ModifiedFrom, originalHasher.HashSeries());
+          (modifiedHasher.HashSeries(), metadataType, originalHasher.HashSeries());
       }
 
       if (newStudyId.size() == 0)
       {
         newStudyId = modifiedHasher.HashStudy();
-        context.GetIndex().SetMetadata(newStudyId, MetadataType_ModifiedFrom, originalHasher.HashStudy());
+        context.GetIndex().SetMetadata(newStudyId, metadataType, originalHasher.HashStudy());
       }
 
       assert(*it == originalHasher.HashInstance());
       assert(modifiedInstance == modifiedHasher.HashInstance());
-      context.GetIndex().SetMetadata(modifiedInstance, MetadataType_ModifiedFrom, *it);
+      context.GetIndex().SetMetadata(modifiedInstance, metadataType, *it);
     }
 
-    context.GetIndex().LogChange(ChangeType_ModifiedStudy, newStudyId);
+    context.GetIndex().LogChange(changeType, newStudyId);
 
     assert(newStudyId.size() != 0);
     Json::Value result = Json::objectValue;