From 2fd73f8d951b8e325a0838a3f4fb0a4e66df18db Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 2 Apr 2014 11:49:13 -0400 Subject: [PATCH] Fix reference to crmSnippet data --- js/view/crm.designer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/view/crm.designer.js b/js/view/crm.designer.js index d43f1ccfb6..dba7d32b29 100644 --- a/js/view/crm.designer.js +++ b/js/view/crm.designer.js @@ -447,7 +447,7 @@ CRM.loadForm(url, {refreshAction: ['next']}) .on('crmFormSuccess', function(e, data) { // When form switches to create custom field context, modify button behavior to only continue for "save and new" - data.customField && ($(this).data('crmSnippet').options.crmForm.refreshAction = ['next_new']); + data.customField && ($(this).data('civiCrmSnippet').options.crmForm.refreshAction = ['next_new']); paletteView.doRefresh(data.customField ? 'custom_' + data.id : null); }); return false; -- 2.25.1