From fd726496bbb272e42793245664df50bb78375ea0 Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Fri, 29 Mar 2013 11:15:47 -0700 Subject: [PATCH] fix notices --- CRM/Core/BAO/File.php | 2 +- CRM/Member/Form/MembershipBlock.php | 14 +++++++------- .../CRM/Event/Form/ManageEvent/Registration.tpl | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CRM/Core/BAO/File.php b/CRM/Core/BAO/File.php index c10becaced..ec635316f1 100644 --- a/CRM/Core/BAO/File.php +++ b/CRM/Core/BAO/File.php @@ -156,7 +156,7 @@ /** * The $useWhere is used so that the signature matches the parent class */ - public function delete($useWhere = false) { + public static function delete($useWhere = false) { list($fileID, $entityID, $fieldID) = func_get_args(); $fileDAO = new CRM_Core_DAO_File(); diff --git a/CRM/Member/Form/MembershipBlock.php b/CRM/Member/Form/MembershipBlock.php index 2191665575..63f298c2fe 100644 --- a/CRM/Member/Form/MembershipBlock.php +++ b/CRM/Member/Form/MembershipBlock.php @@ -50,7 +50,7 @@ class CRM_Member_Form_MembershipBlock extends CRM_Contribute_Form_ContributionPa * @access public * * @return void - */ + */ function setDefaultValues() { //parent::setDefaultValues(); $defaults = array(); @@ -210,7 +210,7 @@ class CRM_Member_Form_MembershipBlock extends CRM_Contribute_Form_ContributionPa $errors = array(); if (CRM_Utils_Array::value('member_price_set_id', $params)) { - //check if this price set has membership type both auto-renew and non-auto-renew memberships. + //check if this price set has membership type both auto-renew and non-auto-renew memberships. $bothTypes = CRM_Price_BAO_Set::checkMembershipPriceSet($params['member_price_set_id']); //check for supporting payment processors @@ -237,7 +237,7 @@ class CRM_Member_Form_MembershipBlock extends CRM_Contribute_Form_ContributionPa } } - } + } } if (CRM_Utils_Array::value('member_is_active', $params)) { @@ -251,7 +251,7 @@ class CRM_Member_Form_MembershipBlock extends CRM_Contribute_Form_ContributionPa } } - if ($contributionPageId && CRM_Utils_Array::value('member_price_set_id', $params) && + if ($contributionPageId && CRM_Utils_Array::value('member_price_set_id', $params) && CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', $contributionPageId, 'amount_block_is_active')) { $errors['member_price_set_id'] = ts('You cannot use Membership Price Sets with the Contribution Amounts section. However, a membership price set may include additional fields for non-membership options that requires an additional fee (e.g. magazine subscription) or an additional voluntary contribution.'); } @@ -291,7 +291,7 @@ class CRM_Member_Form_MembershipBlock extends CRM_Contribute_Form_ContributionPa $errors['is_separate_payment'] = ts('Please enable the contribution amount section to use this option.'); } } - + } return empty($errors) ? TRUE : $errors; @@ -353,7 +353,7 @@ class CRM_Member_Form_MembershipBlock extends CRM_Contribute_Form_ContributionPa } elseif ($usedPriceSetId) { $setParams['extends'] = CRM_Core_Component::getComponentID('CiviMember'); - $setParams['financial_type_id'] = CRM_Utils_Array::value( 'financial_type_id', $this->_values ); + $setParams['financial_type_id'] = CRM_Utils_Array::value( 'financial_type_id', $this->_values ); $setParams['id'] = $usedPriceSetId; $priceSet = CRM_Price_BAO_Set::create($setParams); $priceSetID = $priceSet->id; @@ -371,7 +371,7 @@ class CRM_Member_Form_MembershipBlock extends CRM_Contribute_Form_ContributionPa CRM_Price_BAO_Field::retrieve($editedFieldParams, $editedResults); if (!CRM_Utils_Array::value('id', $editedResults)) { $fieldParams['name'] = strtolower(CRM_Utils_String::munge('Membership Amount', '_', 245)); - $fieldParams['label'] = CRM_Utils_Array::value('new_title', $params) ? $params['new_title'] : 'Membership'; + $fieldParams['label'] = CRM_Utils_Array::value('new_title', $params) ? $params['new_title'] : ts('Membership Amount'); if (!CRM_Utils_Array::value('mem_price_field_id', $params)) { CRM_Utils_Weight::updateOtherWeights('CRM_Price_DAO_Field', 0, 1, array('price_set_id' => $priceSetID)); } diff --git a/templates/CRM/Event/Form/ManageEvent/Registration.tpl b/templates/CRM/Event/Form/ManageEvent/Registration.tpl index 1dfa6a0688..85edf71f18 100644 --- a/templates/CRM/Event/Form/ManageEvent/Registration.tpl +++ b/templates/CRM/Event/Form/ManageEvent/Registration.tpl @@ -359,7 +359,7 @@ invert = 0 function showRuleFields( ruleFields ) { - var msg1 = '{/literal}{ts 1="' + ruleFields + '"}Primary participants will be able to register additional participants using the same e-email address. The default "Fuzzy" Dedupe Rule will use the following fields to prevent duplicate registrations: %1. First and Last Name will be used to check for matches among multiple participants.{/ts}{literal}'; + var msg1 = '{/literal}{ts 1="' + ruleFields + '"}Primary participants will be able to register additional participants using the same e-email address. The default "Unsupervised" Dedupe Rule will use the following fields to prevent duplicate registrations: %1. First and Last Name will be used to check for matches among multiple participants.{/ts}{literal}'; var msg2 = '{/literal}{ts escape='js'}Primary participants will be allowed to register for this event multiple times. No duplicate registration checking will be performed.{/ts}{literal}'; var msg3 = '{/literal}{ts escape='js'}Primary participants will be able to register additional participants during registration.{/ts}{literal}'; -- 2.25.1