X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FLogging%2FReportDetail.php;h=e026f3d4adb03b611967cafd4626487983ff1a47;hb=a2e8bd35b14a8237cd6e972a7ea731118b773ae5;hp=36404cf1d5450671ad898a8d09ed979b026ba2d0;hpb=7bdfe1218c31dbec6dfdf440161a5ccb24db915e;p=civicrm-core.git diff --git a/CRM/Logging/ReportDetail.php b/CRM/Logging/ReportDetail.php index 36404cf1d5..e026f3d4ad 100644 --- a/CRM/Logging/ReportDetail.php +++ b/CRM/Logging/ReportDetail.php @@ -477,7 +477,7 @@ class CRM_Logging_ReportDetail extends CRM_Report_Form { * @return string */ private function convertForeignKeyValuesToLabels(string $fkClassName, string $field, int $keyval): string { - if (property_exists($fkClassName, '_labelField')) { + if ($fkClassName::$_labelField) { $labelValue = CRM_Core_DAO::getFieldValue($fkClassName, $keyval, $fkClassName::$_labelField); // Not sure if this should use ts - there's not a lot of context (`%1 (id: %2)`) - and also the similar field labels above don't use ts. return "{$labelValue} (id: {$keyval})";