summaryrefslogtreecommitdiffstats
path: root/editproducts.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-05-08 04:56:04 +0200
committerlpsolit%gmail.com <>2006-05-08 04:56:04 +0200
commit46c78a8c7c42bfdf47ee1f68939aa122371b9662 (patch)
treedc1bdd83e350c3da2b8f7bc5d7d0e79a2569499d /editproducts.cgi
parent0aeb1349243e6996a7a53e9faf01ac8d13e9e9b3 (diff)
downloadbugzilla-46c78a8c7c42bfdf47ee1f68939aa122371b9662.tar.gz
bugzilla-46c78a8c7c42bfdf47ee1f68939aa122371b9662.tar.xz
Bug 332521: Remove GroupIdToName() from globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-xeditproducts.cgi16
1 files changed, 8 insertions, 8 deletions
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);
}