Mercurial > hg > orthanc
changeset 5441:40112827c56f
fix 'Priority' parsing
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 23 Nov 2023 10:15:19 +0100 |
parents | 85da6dcd0e08 |
children | 8536b98eff2b |
files | OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Wed Nov 22 09:39:35 2023 +0100 +++ b/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Thu Nov 23 10:15:19 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,