From 615a6e228f704a2efbf9c741e37ca4d6d7e3d551 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 8 Nov 2017 09:40:27 -0500 Subject: [PATCH] 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 --- templates/CRM/Admin/Page/APIExplorer.js | 2 ++ 1 file changed, 2 insertions(+) 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({ -- 2.25.1