I'm using Bugzilla 3.2 RC2 (released 11/06/2008)
There is some conditional logic deep in there that shows a 2nd dropdown when the 1st has a value of "Resolved". Works great in IE8, Firefox, and Chrome.
It doesn't work at all in IE6 or IE7. No Javascript error and nothing happens.
I'm wondering if anybody else has run into this issue before in IE6/7 with the Y-UI javascript (at least that is where I think the problem is occurring.
var close_status_array = new Array("[% closed_status_array.join('", "') FILTER replace(',$', '')
FILTER none %]");
YAHOO.util.Dom.setStyle('dup_id_discoverable', 'display', 'block');
hideEditableField( "dup_id_container", "dup_id", 'dup_id_edit_action',
'dup_id', '[% bug.dup_id FILTER js %]' )
showHideStatusItems( "", ['[% "is_duplicate" IF bug.dup_id %]',
'[% bug.bug_status FILTER js %]']);
YAHOO.util.Event.addListener( 'bug_status', "change", showHideStatusItems,
['[% "is_duplicate" IF bug.dup_id %]',
'[% bug.bug_status FILTER js %]']);
YAHOO.util.Event.addListener( 'resolution', "change", showDuplicateItem);
YAHOO.util.Event.addListener( 'dup_id_discoverable_action',
'click',
setResolutionToDuplicate,
'[% Param('duplicate_or_move_bug_status')
FILTER js %]');
YAHOO.util.Event.addListener( window, 'load', showHideStatusItems,
['[% "is_duplicate" IF bug.dup_id %]',
'[% bug.bug_status FILTER js %]'] );
Ultimately, it renders:
var close_status_array = new Array("RESOLVED");
YAHOO.util.Dom.setStyle('dup_id_discoverable', 'display', 'block');
hideEditableField( "dup_id_container", "dup_id", 'dup_id_edit_action', 'dup_id', '' )
showHideStatusItems( "", ['', 'NEW']);
YAHOO.util.Event.addListener( 'bug_status', "change", showHideStatusItems, ['', 'NEW']);
YAHOO.util.Event.addListener( 'resolution', "change", showDuplicateItem);
YAHOO.util.Event.addListener( 'dup_id_discoverable_action', 'click', setResolutionToDuplicate, 'RESOLVED');
YAHOO.util.Event.addListener( window, 'load', showHideStatusItems, ['', 'NEW'] );