summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-02-08 20:42:19 +0100
committermkanat%bugzilla.org <>2009-02-08 20:42:19 +0100
commitf65a3e7e20fdfe2f136ecdaa228f0784bb56b9ad (patch)
tree276bfe21eed5f29153cd15f1f7a16846b8709956 /enter_bug.cgi
parent88463d2b267baefbfc788f192ffa9f08ea972d51 (diff)
downloadbugzilla-f65a3e7e20fdfe2f136ecdaa228f0784bb56b9ad.tar.gz
bugzilla-f65a3e7e20fdfe2f136ecdaa228f0784bb56b9ad.tar.xz
Bug 371995: Allow the Product field to restrict visibility of custom fields
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi4
1 files changed, 4 insertions, 0 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index ef0314bca..f028187fd 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -389,6 +389,10 @@ foreach my $field (@enter_bug_fields) {
$vars->{$field->name} = formvalue($field->name);
}
+# This allows the Field visibility and value controls to work with the
+# Product field as a parent.
+$default{'product'} = $product->name;
+
if ($cloned_bug_id) {
$default{'component_'} = $cloned_bug->component;