From 46c78a8c7c42bfdf47ee1f68939aa122371b9662 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 8 May 2006 02:56:04 +0000 Subject: Bug 332521: Remove GroupIdToName() from globals.pl - Patch by Frédéric Buclin r=mkanat a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editproducts.cgi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'editproducts.cgi') diff --git a/editproducts.cgi b/editproducts.cgi index 9123f034f..942375688 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -660,11 +660,12 @@ if ($action eq 'updategroupcontrols') { my $bugs = $dbh->selectall_arrayref($sth_Select, undef, ($groupid, $product->id)); + my ($removed, $timestamp) = + $dbh->selectrow_array($sth_Select2, undef, $groupid); + foreach my $bug (@$bugs) { my ($bugid, $mailiscurrent) = @$bug; $sth_Delete->execute($bugid, $groupid); - my ($removed, $timestamp) = - $dbh->selectrow_array($sth_Select2, undef, $groupid); LogActivityEntry($bugid, "bug_group", $removed, "", $whoid, $timestamp); @@ -677,8 +678,7 @@ if ($action eq 'updategroupcontrols') { } $count++; } - my %group = (name => GroupIdToName($groupid), - bug_count => $count); + my %group = (name => $removed, bug_count => $count); push(@removed_na, \%group); } @@ -703,11 +703,12 @@ if ($action eq 'updategroupcontrols') { my $bugs = $dbh->selectall_arrayref($sth_Select, undef, ($groupid, $product->id)); + my ($added, $timestamp) = + $dbh->selectrow_array($sth_Select2, undef, $groupid); + foreach my $bug (@$bugs) { my ($bugid, $mailiscurrent) = @$bug; $sth_Insert->execute($bugid, $groupid); - my ($added, $timestamp) = - $dbh->selectrow_array($sth_Select2, undef, $groupid); LogActivityEntry($bugid, "bug_group", "", $added, $whoid, $timestamp); @@ -720,8 +721,7 @@ if ($action eq 'updategroupcontrols') { } $count++; } - my %group = (name => GroupIdToName($groupid), - bug_count => $count); + my %group = (name => $added, bug_count => $count); push(@added_mandatory, \%group); } -- cgit v1.2.3-24-g4f1b