Commits

Olemis Lang  committed d2004b4 Merge

BH Multiproduct: Merge [5aeb565d7365] [6c99c13b7abb] incorporating fix for regression of tracticket5022

  • Participants
  • Parent commits 5aeb565, 6c99c13
  • Branches t387_test_functional

Comments (0)

Files changed (2)

 t387/t387_r1487712_bloodhound_setup.diff
 t387/t387_r1485255_functional_test_infra.diff
 t387/t387_r1495238_attach_btn_value.diff
+t577/t577_r1496958_newticket_id.diff
 t387/t387_r1495238_functional_test.2.diff

File t577/t577_r1496958_newticket_id.diff

+# HG changeset patch
+# Parent 3c1e652d3ebc360f9824fc1c507192f8df51b1aa
+BH Multiproduct #577 : Existing tickets are opened via /newticket URL
+
+diff --git a/bloodhound_multiproduct/multiproduct/ticket/web_ui.py b/bloodhound_multiproduct/multiproduct/ticket/web_ui.py
+--- a/bloodhound_multiproduct/multiproduct/ticket/web_ui.py
++++ b/bloodhound_multiproduct/multiproduct/ticket/web_ui.py
+@@ -54,8 +54,7 @@
+         productid = req.args.get('productid','')
+         
+         if ticketid:
+-            if (req.path_info == '/products/' + productid + '/newticket' or
+-                req.path_info == '/products'):
++            if req.path_info in ('/newticket', '/products'):
+                 raise TracError(_("id can't be set for a new ticket request."))
+             ticket = Ticket(self.env, ticketid)
+             if productid and ticket['product'] != productid: