Merge pull request #19760 from civicrm/5.36
[civicrm-core.git] / ext / search / ang / crmSearchActions / crmSearchInput / crmSearchInputVal.component.js
index 3a6e30066f488a4bba1d30433d9015055d173f10..20b5152760101dadf7b891451508327fffa3a1e4 100644 (file)
@@ -10,7 +10,7 @@
     require: {ngModel: 'ngModel'},
     template: '<div class="form-group" ng-include="$ctrl.getTemplate()"></div>',
     controller: function($scope, formatForSelect2) {
-      var ts = $scope.ts = CRM.ts(),
+      var ts = $scope.ts = CRM.ts('org.civicrm.search'),
         ctrl = this;
 
       this.$onInit = function() {
           return '~/crmSearchActions/crmSearchInput/integer.html';
         }
 
+        if (ctrl.field.data_type === 'Float') {
+          return '~/crmSearchActions/crmSearchInput/float.html';
+        }
+
         return '~/crmSearchActions/crmSearchInput/text.html';
       };