# HG changeset patch # User Sebastien Jodogne # Date 1720772180 -7200 # Node ID 380a71e0d7e79e541c0d055420399422b1323c7e # Parent 4a85ee2cbe1fe156a77e1a09956b6f8cc8207151 fix diff -r 4a85ee2cbe1f -r 380a71e0d7e7 OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp --- a/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp Fri Jul 12 07:59:00 2024 +0200 +++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp Fri Jul 12 10:16:20 2024 +0200 @@ -3356,7 +3356,7 @@ throw OrthancException(ErrorCode_ParameterOutOfRange, "Field \"" + std::string(KEY_LIMIT) + "\" must be a positive integer"); } - else + else if (tmp != 0) // This is for compatibility with Orthanc 1.12.4 { finder.SetLimitsCount(static_cast(tmp)); }