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
826bffd4
Commit
826bffd4
authored
Sep 19, 2000
by
cyeh%bluemartini.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for 52228: Bug list title should be name of query if running named query
patch by dave@intrec.com (Dave Miller)
parent
3faeb367
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
CGI.pl
CGI.pl
+4
-3
buglist.cgi
buglist.cgi
+3
-2
No files found.
CGI.pl
View file @
826bffd4
...
...
@@ -1075,11 +1075,12 @@ sub GetCommandMenu {
my
$mybugsurl
=
PerformSubsts
(
$mybugstemplate
,
\%
substs
);
$html
=
$html
.
" | <A HREF='$mybugsurl'><NOBR>My bugs</NOBR></A>"
;
}
SendSQL
(
"SELECT name
,query
FROM namedqueries "
.
SendSQL
(
"SELECT name FROM namedqueries "
.
"WHERE userid = $userid AND linkinfooter"
);
while
(
MoreSQLData
())
{
my
(
$name
,
$query
)
=
(
FetchSQLData
());
$html
.=
qq{ | <A HREF="buglist.cgi?$query"><NOBR>$name</NOBR></A>}
;
my
(
$name
)
=
(
FetchSQLData
());
$html
.=
" | <A HREF=\"buglist.cgi?&cmdtype=runnamed&namedcmd="
.
url_quote
(
$name
)
.
"\"><NOBR>$name</NOBR></A>"
;
}
$html
.=
" | <NOBR>Edit <a href='userprefs.cgi'>prefs</a></NOBR>"
;
if
(
UserInGroup
(
"tweakparams"
))
{
...
...
buglist.cgi
View file @
826bffd4
...
...
@@ -662,11 +662,12 @@ sub LookupNamedQuery {
$::querytitle
=
"Bug List"
;
CMD:
for
(
$::FORM
{
'cmdtype'
})
{
/^runnamed$/
&&
do
{
$::buffer
=
LookupNamedQuery
(
$::FORM
{
"namedcmd"
});
$::querytitle
=
"Bug List: $::FORM{'namedcmd'}"
;
ProcessFormFields
(
$::buffer
);
last
CMD
;
};
...
...
@@ -1155,7 +1156,7 @@ if (length($buglist) < 4000) {
print
"Set-Cookie: BUGLIST=\n\n"
;
$toolong
=
1
;
}
PutHeader
(
"Bug List"
);
PutHeader
(
$::querytitle
);
print
"
...
...
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