mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 09:03:21 +00:00 
			
		
		
		
	GUAC-1176: Ensure blank values are interpreted consistently (no multiple blank options in select fields).
This commit is contained in:
		| @@ -30,6 +30,12 @@ angular.module('form').controller('selectFieldController', ['$scope', '$injector | ||||
|     // Required services | ||||
|     var translationStringService = $injector.get('translationStringService'); | ||||
|  | ||||
|     // Interpret undefined/null as empty string | ||||
|     $scope.$watch('model', function setModel(model) { | ||||
|         if (!model && model !== '') | ||||
|             $scope.model = ''; | ||||
|     }); | ||||
|  | ||||
|     /** | ||||
|      * Produces the translation string for the given field option | ||||
|      * value. The translation string will be of the form: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user