You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by ma...@apache.org on 2013/02/25 11:19:16 UTC
svn commit: r1449646 -
/incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/ticket/web_ui.py
Author: matevz
Date: Mon Feb 25 10:19:16 2013
New Revision: 1449646
URL: http://svn.apache.org/r1449646
Log:
incorrect check against product resulted in ResourceNotFound when requesting a product-specific ticket
Modified:
incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/ticket/web_ui.py
Modified: incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/ticket/web_ui.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/ticket/web_ui.py?rev=1449646&r1=1449645&r2=1449646&view=diff
==============================================================================
--- incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/ticket/web_ui.py (original)
+++ incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/ticket/web_ui.py Mon Feb 25 10:19:16 2013
@@ -54,7 +54,7 @@ class ProductTicketModule(TicketModule):
req.path_info == '/products'):
raise TracError(_("id can't be set for a new ticket request."))
ticket = Ticket(self.env, ticketid)
- if productid and ticket['product'] != req.args.get('product',''):
+ if productid and ticket['product'] != productid:
msg = "Ticket %(id)s in product '%(prod)' does not exist."
raise ResourceNotFound(_(msg, id=ticketid, prod=productid),
_("Invalid ticket number"))