changeset 127:5f4fe945b764

fix 'Priority' parsing
author Alain Mazy <am@osimis.io>
date Thu, 23 Nov 2023 10:14:41 +0100
parents c3e2da22d54e
children dd0068c70937
files Common/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Common/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp	Wed Nov 22 12:11:17 2023 +0100
+++ b/Common/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp	Thu Nov 23 10:14:41 2023 +0100
@@ -2607,7 +2607,7 @@
 
     if (body.isMember(KEY_PRIORITY))
     {
-      if (body[KEY_PRIORITY].type() != Json::booleanValue)
+      if (body[KEY_PRIORITY].type() != Json::intValue)
       {
 #if HAS_ORTHANC_EXCEPTION == 1
         throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat,