X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FLogging%2FReportDetail.php;h=e026f3d4adb03b611967cafd4626487983ff1a47;hb=2b4ed181a658c1959ff66f5c9cd16b4475638121;hp=36404cf1d5450671ad898a8d09ed979b026ba2d0;hpb=475a25f9d804730311e1420a92d18ac3aac5ce2d;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})";