Modify ↓
#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 , 19 years ago
| Component: | general → ticket system |
|---|---|
| Keywords: | query added |
| Type: | defect → enhancement |
comment:2 by , 17 years ago
| Milestone: | 0.11.2 → 0.11.1 |
|---|---|
| Owner: | changed from to |
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
27 27 } 28 28 if (mode && (getAncestorByTagName(mode, "tr") == tr)) { 29 29 // Check whether there are more 'or' rows for this filter 30 var next = tr.nextSibling;30 var next = $(tr).next()[0]; 31 31 if (next && (next.className == propertyName)) { 32 32 function getChildElementAt(e, idx) { 33 33 e = e.firstChild;
Javascript/jQuery is not my strongest side… Feedback appreciated :-)
comment:4 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Fixed: Committed in [7284:7285] for 0.11 and trunk.
comment:5 by , 17 years ago
| Type: | enhancement → defect |
|---|
Note:
See TracTickets
for help on using tickets.



Confirmed on 0.11, doesn't affect 0.10.