From cf346323bbb86e16057f8f69e2d4293df2a276a4 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 7 Dec 2017 12:33:50 -0500 Subject: [PATCH] Rename variable for consistency --- CRM/Core/BAO/CustomField.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Core/BAO/CustomField.php b/CRM/Core/BAO/CustomField.php index 4b1b11cfae..26887449a9 100644 --- a/CRM/Core/BAO/CustomField.php +++ b/CRM/Core/BAO/CustomField.php @@ -1141,12 +1141,12 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { /** * @param string|int|array|null $value * @param CRM_Core_BAO_CustomField|int|array|string $field - * @param $contactId + * @param int $entityId * * @return string * @throws \Exception */ - public static function displayValue($value, $field, $contactId = NULL) { + public static function displayValue($value, $field, $entityId = NULL) { $field = is_array($field) ? $field['id'] : $field; $fieldId = is_object($field) ? $field->id : (int) str_replace('custom_', '', $field); @@ -1160,7 +1160,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { $fieldInfo = array('options' => $field->getOptions()) + (array) $field; - return self::formatDisplayValue($value, $fieldInfo, $contactId); + return self::formatDisplayValue($value, $fieldInfo, $entityId); } /** -- 2.25.1