mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +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
|
// Required services
|
||||||
var translationStringService = $injector.get('translationStringService');
|
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
|
* Produces the translation string for the given field option
|
||||||
* value. The translation string will be of the form:
|
* value. The translation string will be of the form:
|
||||||
|
Reference in New Issue
Block a user