Repository: guacamole-client Updated Branches: refs/heads/master d1e928bea -> 7481c181e
GUACAMOLE-585: getFieldOption should return EMPTY when value is not present. Project: http://git-wip-us.apache.org/repos/asf/guacamole-client/repo Commit: http://git-wip-us.apache.org/repos/asf/guacamole-client/commit/86856fa8 Tree: http://git-wip-us.apache.org/repos/asf/guacamole-client/tree/86856fa8 Diff: http://git-wip-us.apache.org/repos/asf/guacamole-client/diff/86856fa8 Branch: refs/heads/master Commit: 86856fa895cf3f226ee95707eb958c7bff8b9d48 Parents: d1e928b Author: Nick Couchman <[email protected]> Authored: Sat Jun 30 16:57:51 2018 -0400 Committer: Nick Couchman <[email protected]> Committed: Sat Jun 30 16:57:51 2018 -0400 ---------------------------------------------------------------------- guacamole/src/main/webapp/app/form/directives/formField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/86856fa8/guacamole/src/main/webapp/app/form/directives/formField.js ---------------------------------------------------------------------- diff --git a/guacamole/src/main/webapp/app/form/directives/formField.js b/guacamole/src/main/webapp/app/form/directives/formField.js index 9cf785c..ea0f35f 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')
