Adjust to APiv4 returning label as a field
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 6 Apr 2023 23:39:38 +0000 (11:39 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 10 Apr 2023 22:31:28 +0000 (10:31 +1200)
As tested by CRM_Dedupe_MergerTest::testGetRowsElementsAndInfoSpecialInfo

CRM/Dedupe/Merger.php

index 61b3131de6c458b1fb143a6fda6a48967646c141..d0110b8bfb16bcea635ac07e75addcab5622eec7 100644 (file)
@@ -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'];