SearchKit - Fix display of pseudoconstant fields
authorColeman Watts <coleman@civicrm.org>
Wed, 17 Feb 2021 14:21:20 +0000 (09:21 -0500)
committerColeman Watts <coleman@civicrm.org>
Wed, 17 Feb 2021 14:21:20 +0000 (09:21 -0500)
ext/search/ang/crmSearchAdmin/crmSearchAdmin.component.js

index b2c0e3ab2542dfde09e1caf9e77e8f4e7946ea61..a2519c3e4be8bff42bebcc92e632d41a3089ba5b 100644 (file)
 
       $scope.formatResult = function(row, col) {
         var info = searchMeta.parseExpr(col),
-          value = row[info.alias + info.suffix];
+          value = row[info.alias];
         if (info.fn && info.fn.name === 'COUNT') {
           return value;
         }
         return _.transform(ctrl.savedSearch.api_params.select, function(fields, name) {
           var info = searchMeta.parseExpr(name);
           var item = {
-            id: info.alias + info.suffix,
+            id: info.alias,
             text: ctrl.getFieldLabel(name),
             description: info.field && info.field.description
           };