Commit a77cbd20 authored by guy.pyrzak%gmail.com's avatar guy.pyrzak%gmail.com

Bug 471518: "Field only appears when:" produces a JavaScript error in Internet Explorer

Patch By Jill Foley <jillpf55@sbcglobal.net> r=mkanat, a=mkanat
parent aff82a96
......@@ -166,7 +166,7 @@ function bz_isValueInArray(aArray, aValue)
*/
function bz_createOptionInSelect(aSelect, aTextValue, aValue) {
var myOption = new Option(aTextValue, aValue);
aSelect.appendChild(myOption);
aSelect.options[aSelect.length] = myOption;
return myOption;
}
......
......@@ -27,7 +27,7 @@ var select_values = new Array();
[% FOREACH sel_field = Bugzilla.get_fields({ is_select => 1 }) %]
select_values[[% sel_field.id FILTER js %]] = [
[% FOREACH legal_value = sel_field.legal_values %]
[[% legal_value.id FILTER js %], '[% legal_value.name FILTER html %]'],
[[% legal_value.id FILTER js %], '[% legal_value.name FILTER html %]'][% ',' UNLESS loop.last %]
[% END %]
];
[% END %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment