From: Coleman Watts Date: Wed, 8 Nov 2017 14:40:27 +0000 (-0500) Subject: CRM-21408 - Api explorer - better defaults for sequential checkbox X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=615a6e228f704a2efbf9c741e37ca4d6d7e3d551;p=civicrm-core.git CRM-21408 - Api explorer - better defaults for sequential checkbox ---------------------------------------- * CRM-21408: Api explorer - better defaults for sequential checkbox https://issues.civicrm.org/jira/browse/CRM-21408 --- diff --git a/templates/CRM/Admin/Page/APIExplorer.js b/templates/CRM/Admin/Page/APIExplorer.js index 8b94be5d9f..7769e4a33e 100644 --- a/templates/CRM/Admin/Page/APIExplorer.js +++ b/templates/CRM/Admin/Page/APIExplorer.js @@ -278,6 +278,8 @@ fields = []; joins = []; getFieldData = {}; + // Sequential doesn't make sense in getsingle context, and is only a sensible default for get + $('label[for=sequential-checkbox]').toggle(action !== 'getsingle').find('input').prop('checked', action === 'get').change(); // Special case for getfields if (action === 'getfields') { fields.push({