From: Galen Charlton Date: Thu, 10 Mar 2016 20:29:37 +0000 (-0500) Subject: LP#1549505: fix editing of badge percentile field X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=907c80c6f1efeaaf9743c6cc1bf2a19b93ab56d4;p=working%2FEvergreen.git LP#1549505: fix editing of badge percentile field Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/web/js/ui/default/staff/admin/local/rating/badge.js b/Open-ILS/web/js/ui/default/staff/admin/local/rating/badge.js index f8dc6613d8..b5dc34b091 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/local/rating/badge.js +++ b/Open-ILS/web/js/ui/default/staff/admin/local/rating/badge.js @@ -70,6 +70,8 @@ function($scope , $q , $timeout , $location , $window , $modal , ['$scope', '$modalInstance', function($scope, $modalInstance) { $scope.focusMe = true; $scope.record = egCore.idl.toHash(rb); + // non-integer numeric field require parseFloat + $scope.record.percentile = parseFloat($scope.record.percentile); $scope.record_label = get_record_label(); $scope.fields = get_field_list($scope.record); $scope.ok = function(args) { $modalInstance.close(args) }