From 3a703bd2904fc174c4e42e22d1cee9ab5e3e58eb Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 24 Nov 2014 21:38:43 -0500 Subject: [PATCH] CRM-15618 - Crude workaround for front-end WP js bug --- templates/CRM/Core/BillingBlock.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Core/BillingBlock.tpl b/templates/CRM/Core/BillingBlock.tpl index 53cab5ec94..936410cde2 100644 --- a/templates/CRM/Core/BillingBlock.tpl +++ b/templates/CRM/Core/BillingBlock.tpl @@ -226,7 +226,7 @@ CRM.$(function($) { } if(checked) { $('#billingcheckbox').prop('checked', true); - if (CRM.billing.billingProfileIsHideable) { + if (!CRM.billing || CRM.billing.billingProfileIsHideable) { $('.billing_name_address-group').hide(); } } @@ -266,7 +266,7 @@ CRM.$(function($) { // toggle show/hide $('#billingcheckbox').click(function(){ if(this.checked) { - if (CRM.billing.billingProfileIsHideable) { + if (!CRM.billing || CRM.billing.billingProfileIsHideable) { $('.billing_name_address-group').hide(200); } -- 2.25.1