From: Coleman Watts Date: Wed, 23 Jun 2021 06:21:07 +0000 (-0400) Subject: APIv4 Explorer - Only apply default limit 25 for "get" action X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a0f478df06bf86b33bf34ea3a34524caa073a3ad;p=civicrm-core.git APIv4 Explorer - Only apply default limit 25 for "get" action The API Explorer sets a default limit of 25 so you don't get an overwhelming result set from a `get` action. However, for other actions like `getFields` or `getActions`, there is no need for a limit and the default is annoying. --- diff --git a/ang/api4Explorer/Explorer.js b/ang/api4Explorer/Explorer.js index 5cc419a646..f06e9ab353 100644 --- a/ang/api4Explorer/Explorer.js +++ b/ang/api4Explorer/Explorer.js @@ -458,7 +458,7 @@ default: format = 'raw'; } - if (name === 'limit') { + if (name === 'limit' && $scope.action === 'get') { defaultVal = 25; } if (name === 'debug') {