diff OrthancServer/LuaScripting.cpp @ 1436:0a3e3be59094

uncoupling of SignalChange for Lua scripts
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Jun 2015 17:19:26 +0200
parents 6406f5493d92
children 02f5a3f5c0a0
line wrap: on
line diff
--- a/OrthancServer/LuaScripting.cpp	Tue Jun 30 16:46:23 2015 +0200
+++ b/OrthancServer/LuaScripting.cpp	Tue Jun 30 17:19:26 2015 +0200
@@ -280,7 +280,7 @@
 
 
     Json::Value tags;
-    //if (context_.GetIndex().LookupResource(tags, change.GetPublicId(), change.GetResourceType()))
+    if (context_.GetIndex().LookupResource(tags, change.GetPublicId(), change.GetResourceType()))
     {
       boost::mutex::scoped_lock lock(mutex_);
 
@@ -290,7 +290,7 @@
 
         LuaFunctionCall call(lua_, name);
         call.PushString(change.GetPublicId());
-        call.PushJson(tags);
+        call.PushJson(tags["MainDicomTags"]);
         call.Execute();
 
         SubmitJob(std::string("Lua script: ") + name);