summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-10-08 08:54:47 +0200
committerterry%mozilla.org <>1999-10-08 08:54:47 +0200
commitc6f80310afc00cf7d5114e638cbaaefde3914da0 (patch)
tree6bdaf2497180648d821f3a91e320b6c80b29de23 /process_bug.cgi
parent12d85f8fa42b7130608531ea61b287e9fa822125 (diff)
downloadbugzilla-c6f80310afc00cf7d5114e638cbaaefde3914da0.tar.gz
bugzilla-c6f80310afc00cf7d5114e638cbaaefde3914da0.tar.xz
Added the ability for users to "vote" on which bugs they think should
be fixed.
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index aa168bd55..2bd10e890 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -303,7 +303,7 @@ sub LogDependencyActivity {
foreach my $id (@idlist) {
my %dependencychanged;
- SendSQL("lock tables bugs write, bugs_activity write, cc write, profiles write, dependencies write");
+ SendSQL("lock tables bugs write, bugs_activity write, cc write, profiles write, dependencies write, votes write");
my @oldvalues = SnapShotBug($id);
if (defined $::FORM{'delta_ts'} && $::FORM{'delta_ts'} ne $delta_ts) {
@@ -490,6 +490,10 @@ The changes made were:
$old = DBID_to_name($old) if $old != 0;
$new = DBID_to_name($new) if $new != 0;
}
+ if ($col eq 'product') {
+ RemoveVotes($id,
+ "This bug has been moved to a different product");
+ }
$col = SqlQuote($col);
$old = SqlQuote($old);
$new = SqlQuote($new);