Merge pull request #7518 from jitendrapurohit/CRM-17723
[civicrm-core.git] / CRM / Event / BAO / Event.php
index c155a9dc423c117e1b3207ed2bd5750b7d4d7d2d..2ad3f680b15595568f1718266ef41cf8b3ed8428 100644 (file)
@@ -1664,9 +1664,8 @@ WHERE  id = $cfID
                 //take the custom field options
                 $returnProperties = array($name => 1);
                 $query = new CRM_Contact_BAO_Query($params, $returnProperties, $fields);
-                $options = &$query->_options;
                 if (!$skip) {
-                  $displayValue = CRM_Core_BAO_CustomField::getDisplayValue($customVal, $cfID, $options);
+                  $displayValue = CRM_Core_BAO_CustomField::displayValue($customVal, $cfID);
                 }
                 //Hack since we dont have function to check empty.
                 //FIXME in 2.3 using crmIsEmptyArray()