Skip Menu |

This queue is for tickets about the WWW-Bugzilla CPAN distribution.

Report information
The Basics
Id: 13263
Status: new
Priority: 0/
Queue: WWW-Bugzilla

People
Owner: Nobody in particular
Requestors: at [...] altlinux.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.4
  • 0.5
Fixed in: (no value)



Subject: Support for "matchstr" input field
Hello, Some bugzilla installation do not have the "component" input field in their "new bug" page. Instead, the "matchstr" input field is used to select the appropriate component. Once the component is selected, the "component" field is present in the form but has the type "hidden". And only after this happens, real bug information can be submitted and the bug can be created created. In the attached patch, I implemented the "double-submit" scheme: for the first time, "matchstr" is submitted in order to find out the appropriate component, and then for the second time, the bug report is submitted with the "product" field set and the bug is created. I have tested the patch when submitting bugs to https://bugzilla.altlinux.org. -- Alexey Tourbin ALT Linux Team
--- WWW-Bugzilla-0.4/Bugzilla.pm- 2004-03-22 12:22:35 +0000 +++ WWW-Bugzilla-0.4/Bugzilla.pm 2005-06-14 15:14:56 +0000 @@ -501,6 +501,10 @@ sub commit { } } } + if ($mech->current_form->find_input("matchstr") and $self->{component}) { + $mech->field("matchstr", $self->{component}); + $mech->submit_form(); + } } $mech->submit_form();