Search ext: misc cleanup & fixes
[civicrm-core.git] / ext / search / ang / search / crmSearchActions / crmSearchActionUpdate.ctrl.js
index 63394a2427f6746e338a7f0e4393c1636cc7dacd..a4fb759887a08965a7144565e86f9247cc62e0e8 100644 (file)
@@ -35,7 +35,7 @@
 
     this.availableFields = function() {
       var results = _.transform(ctrl.entity.fields, function(result, item) {
-        var formatted = {id: item.name, text: item.title, description: item.description};
+        var formatted = {id: item.name, text: item.label, description: item.description};
         if (fieldInUse(item.name)) {
           formatted.disabled = true;
         }