Bug 391669: Modifying a bug via email_in.pl fails because there are many fields that process_bug.cgi requires but aren't provided to it - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@243854 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -488,12 +488,14 @@ if (!$cgi->param('id') && $cgi->param('dup_id')) {
|
||||
foreach my $b (@bug_objects) {
|
||||
if (should_set('knob')) {
|
||||
# First, get the correct resolution <select>, in case there is more
|
||||
# than one open -> closed transition allowed.
|
||||
# than one open -> closed transition allowed. Allow to fallback to
|
||||
# 'resolution' (useful when called from email_in.pl).
|
||||
my $knob = $cgi->param('knob');
|
||||
my $status = new Bugzilla::Status({name => $knob});
|
||||
my $resolution;
|
||||
if ($status) {
|
||||
$resolution = $cgi->param('resolution_knob_' . $status->id);
|
||||
$resolution = $cgi->param('resolution_knob_' . $status->id)
|
||||
|| $cgi->param('resolution');
|
||||
}
|
||||
else {
|
||||
$resolution = $cgi->param('resolution_knob_change_resolution');
|
||||
|
||||
Reference in New Issue
Block a user