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 authored and Endi S. Dewata committed 2012-02-20 15:47:32 -06:00
1 parent 9942a29cab
commit a11f1bb2c2
1 file changed
+6 -1
+6 -1
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);
}