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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
ca924726
Commit
ca924726
authored
Jan 24, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New email code wasn't sending to people who had voted for a bug.
Added "My votes" link to footer. Other minor voting-related fixes.
parent
a240c91d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
6 deletions
+32
-6
CGI.pl
CGI.pl
+6
-0
changepassword.cgi
changepassword.cgi
+12
-4
editproducts.cgi
editproducts.cgi
+1
-1
globals.pl
globals.pl
+5
-0
processmail
processmail
+8
-1
No files found.
CGI.pl
View file @
ca924726
...
...
@@ -846,6 +846,12 @@ sub GetCommandMenu {
my
$mybugstemplate
=
Param
(
"mybugstemplate"
);
my
%
substs
;
$substs
{
'userid'
}
=
$::COOKIE
{
"Bugzilla_login"
};
if
(
!
defined
$::anyvotesallowed
)
{
GetVersionTable
();
}
if
(
$::anyvotesallowed
)
{
$html
.=
qq{ | <A HREF="showvotes.cgi">My votes</A>}
;
}
my
$mybugsurl
=
PerformSubsts
(
$mybugstemplate
,
\%
substs
);
$html
=
$html
.
" | <a href='$mybugsurl'>My bugs</a>"
;
}
...
...
changepassword.cgi
View file @
ca924726
...
...
@@ -22,10 +22,18 @@
require
"CGI.pl"
;
sub
sillyness
{
my
$zz
;
$zz
=
$::anyvotesallowed
;
}
confirm_login
();
print
"Content-type: text/html\n\n"
;
GetVersionTable
();
if
(
!
defined
$::FORM
{
'pwd1'
})
{
PutHeader
(
"Preferences"
,
"Change your password and<br>other preferences"
,
$::COOKIE
{
'Bugzilla_login'
});
...
...
@@ -98,10 +106,10 @@ risk any bugs), check here.</td>
<hr>
<input type=submit value=Submit>
</form>
<hr>
<a href=\"showvotes.cgi\">Review your votes</a>
<hr>
"
;
<hr>
"
;
if
(
$::anyvotesallowed
)
{
print
qq{<a href="showvotes.cgi">Review your votes</a><hr>\n}
;
}
PutFooter
();
exit
;
}
...
...
editproducts.cgi
View file @
ca924726
...
...
@@ -689,9 +689,9 @@ if ($action eq 'update') {
SET program='$product'
WHERE program="
.
SqlQuote
(
$productold
));
unlink
"data/versioncache"
;
print
"Updated product name.<BR>\n"
;
}
unlink
"data/versioncache"
;
SendSQL
(
"UNLOCK TABLES"
);
PutTrailer
(
$localtrailer
);
...
...
globals.pl
View file @
ca924726
...
...
@@ -280,6 +280,7 @@ sub GenerateVersionTable {
my
$mpart
=
$dotargetmilestone
?
", milestoneurl"
:
""
;
SendSQL
(
"select product, description, votesperuser, disallownew$mpart from products"
);
$::anyvotesallowed
=
0
;
while
(
@line
=
FetchSQLData
())
{
my
(
$p
,
$d
,
$votesperuser
,
$dis
,
$u
)
=
(
@line
);
$::proddesc
{
$p
}
=
$d
;
...
...
@@ -293,6 +294,9 @@ sub GenerateVersionTable {
$::milestoneurl
{
$p
}
=
$u
;
}
$::prodmaxvotes
{
$p
}
=
$votesperuser
;
if
(
$votesperuser
>
0
)
{
$::anyvotesallowed
=
1
;
}
}
...
...
@@ -345,6 +349,7 @@ sub GenerateVersionTable {
}
print
FID
GenerateCode
(
'%::proddesc'
);
print
FID
GenerateCode
(
'%::prodmaxvotes'
);
print
FID
GenerateCode
(
'$::anyvotesallowed'
);
if
(
$dotargetmilestone
)
{
my
$last
=
Param
(
"nummilestones"
);
...
...
processmail
View file @
ca924726
...
...
@@ -357,7 +357,13 @@ sub NewProcessOneBug {
}
my
(
$start
,
$end
)
=
(
@row
);
$values
{
'cc'
}
=
ShowCcList
(
$id
);
my
@voterlist
;
SendSQL
(
"SELECT profiles.login_name FROM votes, profiles "
.
"WHERE votes.bug_id = $id AND profiles.userid = votes.who"
);
while
(
MoreSQLData
())
{
push
(
@voterlist
,
FetchOneColumn
());
}
$values
{
'assigned_to'
}
=
DBID_to_name
(
$values
{
'assigned_to'
});
$values
{
'reporter'
}
=
DBID_to_name
(
$values
{
'reporter'
});
...
...
@@ -453,6 +459,7 @@ sub NewProcessOneBug {
my
$count
=
0
;
for
my
$person
(
$values
{
'assigned_to'
},
$values
{
'reporter'
},
split
(
/,/
,
$values
{
'cc'
}),
@voterlist
,
@forcecc
)
{
$count
++
;
if
(
$seen
{
$person
})
{
...
...
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