aboutsummaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-01-24 03:49:31 +0000
committerlpsolit%gmail.com <>2008-01-24 03:49:31 +0000
commit92129e7250e8fd9af8330de686ad5f77b6b73932 (patch)
treea2a3629e4b0e4b7b7a64bb520ada23aed367f12d /process_bug.cgi
parent4a3e07de812041539bd46df627a90adb96c189db (diff)
downloadbugs-92129e7250e8fd9af8330de686ad5f77b6b73932.tar
bugs-92129e7250e8fd9af8330de686ad5f77b6b73932.tar.gz
bugs-92129e7250e8fd9af8330de686ad5f77b6b73932.tar.bz2
bugs-92129e7250e8fd9af8330de686ad5f77b6b73932.tar.xz
bugs-92129e7250e8fd9af8330de686ad5f77b6b73932.zip
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
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 3f2235422..912440ce2 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -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');