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
This commit is contained in:
Petr Voborník
2012-02-15 17:47:53 +01:00
committed by Endi S. Dewata
parent 9942a29cab
commit a11f1bb2c2

View File

@@ -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);
}