summaryrefslogtreecommitdiffstats
path: root/install/ui
diff options
context:
space:
mode:
authorPetr Voborník <pvoborni@redhat.com>2012-02-15 17:47:53 +0100
committerEndi S. Dewata <edewata@redhat.com>2012-02-20 15:47:32 -0600
commita11f1bb2c2619970824c1eb8cabc4b9913ba7c54 (patch)
treed3ef499a7e01e932e60c32f0c2956a8e2752e9fa /install/ui
parent9942a29cab06ff99cdd3380c4daf3b41ebdf2fb8 (diff)
downloadfreeipa-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
Diffstat (limited to 'install/ui')
-rw-r--r--install/ui/aci.js7
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);
}