From a5eff6ef47ba604cfd0295fa3905afcc43e0e41a Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 20 Jun 2015 14:06:22 -0400 Subject: [PATCH] Fix caching of multi-custom options --- js/jquery/jquery.crmeditable.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); -- 2.25.1