Modify ↓
Opened 6 years ago
Closed 6 years ago
#13756 closed defect (fixed)
Fails if ticket['type'] contains uppercase
| Reported by: | anonymous | Owned by: | Ryan J Ollos |
|---|---|---|---|
| Priority: | normal | Component: | CondFieldsGenshiPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: |
Description
If ticket type value has any upper-case characters, it will not match any pattern, regardless of whether the pattern contains the proper cases or not.
At a glance, I think the issue is here:
matches_type_cond |= ticket_type == cond.lower()
ticket_type is not .lower() but cond is--so if there are any uppercase in ticket['type'], this will never match. We should either lower both, or not lower both.
Attachments (0)
Change History (2)
comment:1 Changed 6 years ago by
| Owner: | changed from Reinhard Wobst to Ryan J Ollos |
|---|---|
| Status: | new → accepted |
comment:2 Changed 6 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Note: See
TracTickets for help on using
tickets.



In 17702: