From 8001040de7234831e83c42dc6afb945afa361cc9 Mon Sep 17 00:00:00 2001 From: mmikitka Date: Fri, 9 Aug 2013 00:00:48 -0400 Subject: [PATCH] Fixed bug https://github.com/civicrm/civicrm-core/pull/1206#issuecomment-21285959 --- CRM/Core/BAO/CustomField.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CRM/Core/BAO/CustomField.php b/CRM/Core/BAO/CustomField.php index 77e306f909..0242979aea 100644 --- a/CRM/Core/BAO/CustomField.php +++ b/CRM/Core/BAO/CustomField.php @@ -145,6 +145,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { 'column_name' ); } + $columnName = $params['column_name']; $indexExist = FALSE; //as during create if field is_searchable we had created index. @@ -284,9 +285,6 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { self::createField($customField, 'modify', $indexExist); } else { - if (!isset($params['column_name'])) { - $columnName .= "_{$customField->id}"; - } $customField->column_name = $columnName; $customField->save(); // make sure all values are present in the object -- 2.25.1