From b10b974d3d7186c97baf72a27739803e0346ba57 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 3 Jun 2014 23:58:01 +1200 Subject: [PATCH] CRM-14778 store names as lower --- CRM/Price/BAO/PriceField.php | 2 +- CRM/Price/BAO/PriceFieldValue.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Price/BAO/PriceField.php b/CRM/Price/BAO/PriceField.php index a1c27d965d..6c25b02c76 100644 --- a/CRM/Price/BAO/PriceField.php +++ b/CRM/Price/BAO/PriceField.php @@ -82,7 +82,7 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField { */ static function create(&$params) { if(empty($params['id']) && empty($params['name'])) { - $params['name'] = CRM_Utils_String::munge($params['label'], '_', 242); + $params['name'] = strtolower(CRM_Utils_String::munge($params['label'], '_', 242)); } $transaction = new CRM_Core_Transaction(); diff --git a/CRM/Price/BAO/PriceFieldValue.php b/CRM/Price/BAO/PriceFieldValue.php index 0690f8358a..d53f27a185 100644 --- a/CRM/Price/BAO/PriceFieldValue.php +++ b/CRM/Price/BAO/PriceFieldValue.php @@ -85,7 +85,7 @@ class CRM_Price_BAO_PriceFieldValue extends CRM_Price_DAO_PriceFieldValue { return; } if(empty($params['id']) && empty($params['name'])) { - $params['name'] = CRM_Utils_String::munge($params['label'], '_', 242); + $params['name'] = strtolower(CRM_Utils_String::munge($params['label'], '_', 242)); } if ($id = CRM_Utils_Array::value('id', $ids)) { -- 2.25.1