Skip to content

Commit

Permalink
Merge pull request #11256 from colemanw/CRM-21408
Browse files Browse the repository at this point in the history
CRM-21408 - Api explorer - better defaults for sequential checkbox
  • Loading branch information
totten authored Nov 8, 2017
2 parents ed45309 + 615a6e2 commit f497baf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/CRM/Admin/Page/APIExplorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit f497baf

Please sign in to comment.