replace unnecessary function call with string literal
authorhighfalutin <highfalutin@users.noreply.github.com>
Thu, 17 Jun 2021 06:02:28 +0000 (23:02 -0700)
committerGitHub <noreply@github.com>
Thu, 17 Jun 2021 06:02:28 +0000 (23:02 -0700)
CRM/Member/Form/MembershipBlock.php

index 99ef355617b3f85beda353836d7e73d788cec8e0..352ad1d0c4e08847abf080a535af4027659622b4 100644 (file)
@@ -386,7 +386,7 @@ class CRM_Member_Form_MembershipBlock extends CRM_Contribute_Form_ContributionPa
         $editedResults = [];
         CRM_Price_BAO_PriceField::retrieve($editedFieldParams, $editedResults);
         if (empty($editedResults['id'])) {
-          $fieldParams['name'] = strtolower(CRM_Utils_String::munge('Membership Amount', '_', 245));
+          $fieldParams['name'] = 'membership_amount';
           if (empty($params['mem_price_field_id'])) {
             CRM_Utils_Weight::updateOtherWeights('CRM_Price_DAO_PriceField', 0, 1, ['price_set_id' => $priceSetID]);
           }