From b39ecb045ebed5c3b76f05ca6332eacc75a0e833 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 7 Apr 2023 11:39:38 +1200 Subject: [PATCH] Adjust to APiv4 returning label as a field As tested by CRM_Dedupe_MergerTest::testGetRowsElementsAndInfoSpecialInfo --- CRM/Dedupe/Merger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Dedupe/Merger.php b/CRM/Dedupe/Merger.php index 61b3131de6..d0110b8bfb 100644 --- a/CRM/Dedupe/Merger.php +++ b/CRM/Dedupe/Merger.php @@ -1546,7 +1546,7 @@ INNER JOIN civicrm_membership membership2 ON membership1.membership_type_id = m $rows["move_$field"] = [ 'main' => self::getFieldValueAndLabel($field, $main)['label'], 'other' => self::getFieldValueAndLabel($field, $other)['label'], - 'title' => $fields[$field]['html']['label'] ?? $fields[$field]['title'], + 'title' => $fields[$field]['label'], ]; $value = self::getFieldValueAndLabel($field, $other)['value']; -- 2.25.1