From f65a3e7e20fdfe2f136ecdaa228f0784bb56b9ad Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sun, 8 Feb 2009 19:42:19 +0000 Subject: Bug 371995: Allow the Product field to restrict visibility of custom fields Patch By Max Kanat-Alexander r=LpSolit, a=mkanat --- enter_bug.cgi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'enter_bug.cgi') 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; -- cgit v1.2.3-24-g4f1b