incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r1449646 - /incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/ticket/web_ui.py
Date Mon, 25 Feb 2013 10:19:16 GMT
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"))



Mime
View raw message