From: Coleman Watts Date: Sat, 20 Jun 2015 18:06:22 +0000 (-0400) Subject: Fix caching of multi-custom options X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a5eff6ef47ba604cfd0295fa3905afcc43e0e41a;p=civicrm-core.git Fix caching of multi-custom options --- diff --git a/js/jquery/jquery.crmeditable.js b/js/jquery/jquery.crmeditable.js index 2b0908fd1d..c0134c79d1 100644 --- a/js/jquery/jquery.crmeditable.js +++ b/js/jquery/jquery.crmeditable.js @@ -198,9 +198,12 @@ } var result, info = $i.crmEditableEntity(), - hash = info.entity + '.' + info.field, + // Strip extra id from multivalued custom fields + custom = info.field.match(/(custom_\d+)_\d+/), + field = custom ? custom[1] : info.field, + hash = info.entity + '.' + field, params = { - field: info.field, + field: field, context: 'create' }; $i.data('optionsHashKey', hash);