summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-07-07 16:54:54 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-07-21 12:30:23 +0200
commit62ac6edcf42d0b736a4363aad0593dc70832ace2 (patch)
tree2beef48ec532f029dd713f6a7590356d11e88abd /install
parent75a96fb4c2f58d9ad54a374136afa656ac9a737e (diff)
downloadfreeipa-62ac6edcf42d0b736a4363aad0593dc70832ace2.tar.gz
freeipa-62ac6edcf42d0b736a4363aad0593dc70832ace2.tar.xz
freeipa-62ac6edcf42d0b736a4363aad0593dc70832ace2.zip
webui: fix selection of empty value in a select widget
Little regression - select widget could not handle empty or no array as an input value. It broke 'undo' operation in Permissions' 'Type' attribute while switching between '' and some value. Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'install')
-rw-r--r--install/ui/src/freeipa/widget.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js
index c0c580062..79f814552 100644
--- a/install/ui/src/freeipa/widget.js
+++ b/install/ui/src/freeipa/widget.js
@@ -1981,7 +1981,7 @@ IPA.select_widget = function(spec) {
that.update = function(values) {
var old = that.save()[0];
- var value = values[0];
+ var value = values[0] || "";
var option = $('option[value="'+value+'"]', that.select);
if (option.length) {
option.prop('selected', true);