From 9b3312f18a9434c70e69d752f1b24bff3fee8d1b Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 25 Apr 2015 12:42:08 -0700 Subject: [PATCH] GUAC-1179: Fix handling of numeric fields - use model value, not field value. --- guacamole/src/main/webapp/app/form/directives/formField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guacamole/src/main/webapp/app/form/directives/formField.js b/guacamole/src/main/webapp/app/form/directives/formField.js index c928af112..96dedc890 100644 --- a/guacamole/src/main/webapp/app/form/directives/formField.js +++ b/guacamole/src/main/webapp/app/form/directives/formField.js @@ -183,7 +183,7 @@ angular.module('form').directive('guacFormField', [function formField() { // Coerce numeric strings to numbers if ($scope.field.type === 'NUMERIC') - $scope.typedValue = (modelValue ? Number($scope.field.value) : null); + $scope.typedValue = (modelValue ? Number(modelValue) : null); // Coerce boolean strings to boolean values else if ($scope.field.type === 'BOOLEAN')