Fix reference to crmSnippet data
[civicrm-core.git] / js / view / crm.designer.js
index d43f1ccfb6b5375a937fcd81d4b326b61ab5ef87..dba7d32b2980e236fbe55e924404ec65504eaa83 100644 (file)
       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;