diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-07-07 16:54:54 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-07-21 12:30:23 +0200 |
commit | 62ac6edcf42d0b736a4363aad0593dc70832ace2 (patch) | |
tree | 2beef48ec532f029dd713f6a7590356d11e88abd /install/ui/src/freeipa/widget.js | |
parent | 75a96fb4c2f58d9ad54a374136afa656ac9a737e (diff) | |
download | freeipa-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/ui/src/freeipa/widget.js')
-rw-r--r-- | install/ui/src/freeipa/widget.js | 2 |
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); |