X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=js%2Fcrm.optionEdit.js;h=20e01b7afdcbcbb6bb6976af17ab58f00ef5cf2e;hb=2aeddfe52d6529454b95a4a18226cc60f892fc88;hp=1b1338ce00a793cca1f54b80241e7305cce9b634;hpb=866c4484842dce3df9a4913b94b8480a70fa7395;p=civicrm-core.git diff --git a/js/crm.optionEdit.js b/js/crm.optionEdit.js index 1b1338ce00..20e01b7afd 100644 --- a/js/crm.optionEdit.js +++ b/js/crm.optionEdit.js @@ -30,10 +30,13 @@ jQuery(function($) { */ function rebuildOptions($existing, rebuilder) { if ($existing.data('api-entity') && $existing.data('api-field')) { - CRM.api3($existing.data('api-entity'), 'getoptions', { + var params = { sequential: 1, field: $existing.data('api-field') - }) + }; + $.extend(params, $existing.data('option-edit-context')); + + CRM.api3($existing.data('api-entity'), 'getoptions', params) .done(function(data) { rebuilder($existing, data.values); });