diff options
author | Petr VobornÃk <pvoborni@redhat.com> | 2012-02-15 17:47:53 +0100 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2012-02-20 15:47:32 -0600 |
commit | a11f1bb2c2619970824c1eb8cabc4b9913ba7c54 (patch) | |
tree | d3ef499a7e01e932e60c32f0c2956a8e2752e9fa | |
parent | 9942a29cab06ff99cdd3380c4daf3b41ebdf2fb8 (diff) | |
download | freeipa-a11f1bb2c2619970824c1eb8cabc4b9913ba7c54.tar.gz freeipa-a11f1bb2c2619970824c1eb8cabc4b9913ba7c54.tar.xz freeipa-a11f1bb2c2619970824c1eb8cabc4b9913ba7c54.zip |
Fixed problem when attributes_widget was displaying empty option
Attribute table was modified to skip creation of option for empty value.
https://fedorahosted.org/freeipa/ticket/2291
-rw-r--r-- | install/ui/aci.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/install/ui/aci.js b/install/ui/aci.js index fc72b5192..02e03f309 100644 --- a/install/ui/aci.js +++ b/install/ui/aci.js @@ -487,7 +487,12 @@ IPA.attributes_widget = function(spec) { values = values || []; for (var i=0; i<values.length; i++) { - var value = values[i].toLowerCase(); + + var value = values[i]; + + if (!value || value === '') continue; + + value = value.toLowerCase(); that.values.push(value); } |