Edgewall Software
Modify

Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#5073 closed defect (fixed)

bug when removing a filter

Reported by: Waldemar Kornewald <wkornewald> Owned by: osimons
Priority: normal Milestone: 0.11.1
Component: ticket system Version: devel
Severity: normal Keywords: query
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Add a few filters for "Component". Then click on "Update". Then, remove the topmost filter for "Component". The whole row is removed, including the label.

Attachments (0)

Change History (5)

comment:1 by Christian Boos, 17 years ago

Component: generalticket system
Keywords: query added
Type: defectenhancement

Confirmed on 0.11, doesn't affect 0.10.

comment:2 by osimons, 16 years ago

Milestone: 0.11.20.11.1
Owner: changed from Jonas Borgström to osimons

Looked into this, and turns out Firefox views the whitespace between the elements as the nextSibling element.

Using jQuery method instead seems to fix it:

  • trac/htdocs/js/query.js

     
    2727      }
    2828      if (mode && (getAncestorByTagName(mode, "tr") == tr)) {
    2929        // Check whether there are more 'or' rows for this filter
    30         var next = tr.nextSibling;
     30        var next = $(tr).next()[0];
    3131        if (next && (next.className == propertyName)) {
    3232          function getChildElementAt(e, idx) {
    3333            e = e.firstChild;

Javascript/jQuery is not my strongest side… Feedback appreciated :-)

comment:3 by Christian Boos, 16 years ago

Seems you nailed it down - fix verified.

comment:4 by osimons, 16 years ago

Resolution: fixed
Status: newclosed

Fixed: Committed in [7284:7285] for 0.11 and trunk.

comment:5 by Christian Boos, 16 years ago

Type: enhancementdefect

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from osimons to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.