From 86856fa895cf3f226ee95707eb958c7bff8b9d48 Mon Sep 17 00:00:00 2001 From: Nick Couchman Date: Sat, 30 Jun 2018 16:57:51 -0400 Subject: [PATCH] GUACAMOLE-585: getFieldOption should return EMPTY when value is not present. --- 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 9cf785c3a..ea0f35fd7 100644 --- a/guacamole/src/main/webapp/app/form/directives/formField.js +++ b/guacamole/src/main/webapp/app/form/directives/formField.js @@ -119,7 +119,7 @@ angular.module('form').directive('guacFormField', [function formField() { $scope.getFieldOption = function getFieldOption(value) { // If no field, or no value, then no corresponding translation string - if (!$scope.field || !$scope.field.name || !value) + if (!$scope.field || !$scope.field.name) return ''; return translationStringService.canonicalize($scope.namespace || 'MISSING_NAMESPACE')