summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-05-09 22:41:55 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-05-09 22:41:55 +0200
commitb5075fdb03efc8732e9d8ba767e8043f577bdbce (patch)
tree0134adedcf986d5ca759726d2d81850a8f4e6bbd /enter_bug.cgi
parent044e2e4ffa11bdc792abdac7748dffe02a532122 (diff)
downloadbugzilla-b5075fdb03efc8732e9d8ba767e8043f577bdbce.tar.gz
bugzilla-b5075fdb03efc8732e9d8ba767e8043f577bdbce.tar.xz
Bug 869077 - Component isn't preselected from the query_string when cloning a bug
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 55547b15c..c0d8f59ee 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -247,7 +247,8 @@ $default{'product'} = $product->name;
if ($cloned_bug_id) {
- $default{'component_'} = $cloned_bug->component;
+ # BMO: allow form value component to override the cloned bug component
+ $default{'component_'} = formvalue('component') || $cloned_bug->component;
$default{'priority'} = $cloned_bug->priority;
$default{'bug_severity'} = $cloned_bug->bug_severity;
$default{'rep_platform'} = $cloned_bug->rep_platform;