From: Eileen McNaughton Date: Thu, 2 Jul 2015 13:04:17 +0000 (+1200) Subject: fix formatting X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8deb20a32842e7acdaf70164919cbd7e15238f2e;p=civicrm-core.git fix formatting --- diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index 5a022b02df..77758ddd7b 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -565,11 +565,11 @@ class CRM_Member_Form_Membership extends CRM_Member_Form { $memTypeJs = array( 'onChange' => "buildMaxRelated(this.value,true); CRM.buildCustomData('Membership', this.value);", ); + if (!empty($this->_recurPaymentProcessors)) { $memTypeJs['onChange'] = "" . $memTypeJs['onChange'] . 'buildAutoRenew(this.value, null);'; } - ; $this->add('text', 'max_related', ts('Max related'), CRM_Core_DAO::getAttribute('CRM_Member_DAO_Membership', 'max_related') );