Modify ↓
Opened 16 years ago
Closed 16 years ago
#4739 closed defect (worksforme)
MasterTicketsPlugin conflicts with other plugins
Reported by: | Owned by: | Noah Kantrowitz | |
---|---|---|---|
Priority: | normal | Component: | MasterTicketsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
In the file web_ui.py line 43 the plugin checks for "ticket" in the path, then it assumes that there is going to be a key "ticket" in the data dictionary. Other plugins like the CustomFieldAdmin use URL like /admin/ticket/customfields so then an exception is generated.
If the if condition is changed to:
def post_process_request(self, req, template, data, content_type): if req.path_info.startswith('/ticket/') and 'ticket' in data: tkt = data['ticket'] links = TicketLinks(self.env, tkt)
the other plugins can include "ticket" in their url.
Attachments (0)
Note: See
TracTickets for help on using
tickets.
The condition is
.startswith('/ticket/')
./admin/ticket
doesn't start with/ticket/
so it won't trigger the filter.