AdminUi - Fix relationship screen to show names instead of labels
authorColeman Watts <coleman@civicrm.org>
Sun, 23 Oct 2022 23:17:46 +0000 (19:17 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 23 Oct 2022 23:17:46 +0000 (19:17 -0400)
ext/civicrm_admin_ui/managed/SavedSearch_Administer_Relationship_Types.mgd.php

index 73c9b6338a53a8374fc7947872e492635b751eba..af7c684b2b699277af05142fad2b779ec31e615a 100644 (file)
@@ -19,8 +19,8 @@ return [
         'api_params' => [
           'version' => 4,
           'select' => [
-            'name_a_b',
-            'name_b_a',
+            'label_a_b',
+            'label_b_a',
             'contact_type_a:label',
             'contact_type_b:label',
             'is_active',
@@ -61,7 +61,7 @@ return [
           'columns' => [
             [
               'type' => 'field',
-              'key' => 'name_a_b',
+              'key' => 'label_a_b',
               'dataType' => 'String',
               'label' => E::ts('Relationship A to B'),
               'sortable' => TRUE,
@@ -69,7 +69,7 @@ return [
             ],
             [
               'type' => 'field',
-              'key' => 'name_b_a',
+              'key' => 'label_b_a',
               'dataType' => 'String',
               'label' => E::ts('Relationship B to A'),
               'sortable' => TRUE,