Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
901d9285
Commit
901d9285
authored
Oct 02, 2002
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 172010 voting broken on tip
Regression from 43600 and 157756 2xr=bbaetz
parent
baada6e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
CGI.pl
CGI.pl
+1
-1
votes.cgi
votes.cgi
+3
-1
No files found.
CGI.pl
View file @
901d9285
...
...
@@ -904,7 +904,7 @@ sub CheckIfVotedConfirmed {
SendSQL
(
"SELECT bugs.votes, bugs.bug_status, products.votestoconfirm, "
.
" bugs.everconfirmed "
.
"FROM bugs, products "
.
"WHERE bugs.bug_id = $id AND products.
product_
id = bugs.product_id"
);
"WHERE bugs.bug_id = $id AND products.id = bugs.product_id"
);
my
(
$votes
,
$status
,
$votestoconfirm
,
$everconfirmed
)
=
(
FetchSQLData
());
if
(
$votes
>=
$votestoconfirm
&&
$status
eq
$::unconfirmedstate
)
{
SendSQL
(
"UPDATE bugs SET bug_status = 'NEW', everconfirmed = 1 "
.
...
...
votes.cgi
View file @
901d9285
...
...
@@ -134,6 +134,7 @@ sub show_user {
my
$canedit
=
1
if
(
$name
eq
$::COOKIE
{
'Bugzilla_login'
});
SendSQL
(
"LOCK TABLES bugs READ, products READ, votes WRITE,
cc READ, bug_group_map READ, user_group_map READ,
cc AS selectVisible_cc READ"
);
if
(
$canedit
&&
$bug_id
)
{
...
...
@@ -314,7 +315,8 @@ sub record_votes {
# for products that only allow one vote per bug). In that case, we still
# need to clear the user's votes from the database.
my
%
affected
;
SendSQL
(
"LOCK TABLES bugs write, votes write, products read"
);
SendSQL
(
"LOCK TABLES bugs write, votes write, products read, cc read,
user_group_map read, bug_group_map read"
);
# Take note of, and delete the user's old votes from the database.
SendSQL
(
"SELECT bug_id FROM votes WHERE who = $who"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment