From f2df808db17259949894a6431f4bdee6448ef6b5 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 3 Jun 2006 05:58:53 +0000 Subject: Bug 340116: Flag::FormToNewFlags() uses incorrect data - Patch by Frédéric Buclin r=kiko a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Flag.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Flag.pm') diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm index ef8ecd867..8a3199003 100644 --- a/Bugzilla/Flag.pm +++ b/Bugzilla/Flag.pm @@ -716,8 +716,8 @@ sub FormToNewFlags { # Get a list of active flag types available for this target. my $flag_types = Bugzilla::FlagType::match( { 'target_type' => $target->{'type'}, - 'product_id' => $target->{'product_id'}, - 'component_id' => $target->{'component_id'}, + 'product_id' => $target->{'bug'}->{'product_id'}, + 'component_id' => $target->{'bug'}->{'component_id'}, 'is_active' => 1 }); my @flags; -- cgit v1.2.3-24-g4f1b