Edgewall Software

Ticket #878: patch-queryres-r1014.diff

File patch-queryres-r1014.diff, 1.0 KB (added by pkou <pkou at ua.fm>, 8 years ago)

Patch for the defect

  • templates/query.cs

     
    4848   <script type="text/javascript"> 
    4949     var status = document.getElementById("status"); 
    5050     var updateResolution = function() { 
    51        enableControl('resolution', status.selectedIndex == -1 || 
    52                                    status.options[3].selected); 
     51       var bEnable = true 
     52       if (status.selectedIndex != -1) { 
     53         for (i=0; i < status.options.length; ++i) { 
     54           if (status.options[i].selected && 
     55               (status.options[i].text == 'new'   || 
     56                status.options[i].text == 'assigned' || 
     57                status.options[i].text == 'reopened')) { 
     58             bEnable = false 
     59             break 
     60           } 
     61         } 
     62       } 
     63       enableControl('resolution', bEnable); 
    5364     }; 
    5465     addEvent(window, 'load', updateResolution); 
    5566     addEvent(status, 'change', updateResolution);