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

Patch By Jill Foley <jillpf55@sbcglobal.net> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255907 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
guy.pyrzak%gmail.com 2009-01-23 21:08:27 +00:00
parent b8597fc3e3
commit 0f1acb709a
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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 %]