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
78b4d31f
Commit
78b4d31f
authored
Jul 22, 2002
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 95426 - remove $onebug cruft. Patch by gerv; 2xr=timeless.
parent
64074d19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
18 deletions
+5
-18
editkeywords.cgi
editkeywords.cgi
+2
-10
queryhelp.cgi
queryhelp.cgi
+3
-8
No files found.
editkeywords.cgi
View file @
78b4d31f
...
...
@@ -141,22 +141,14 @@ if ($action eq "") {
my
$max_table_size
=
50
;
SendSQL
(
"SELECT keyworddefs.id, keyworddefs.name, keyworddefs.description,
COUNT(keywords.bug_id)
, keywords.bug_id
COUNT(keywords.bug_id)
FROM keyworddefs LEFT JOIN keywords ON keyworddefs.id = keywords.keywordid
GROUP BY keyworddefs.id
ORDER BY keyworddefs.name"
);
while
(
MoreSQLData
())
{
my
(
$id
,
$name
,
$description
,
$bugs
,
$onebug
)
=
FetchSQLData
();
my
(
$id
,
$name
,
$description
,
$bugs
)
=
FetchSQLData
();
$description
||=
"<FONT COLOR=\"red\">missing</FONT>"
;
$bugs
||=
'none'
;
if
(
!
$onebug
)
{
# This is silly hackery for old versions of MySQL that seem to
# return a count() of 1 even if there are no matching. So, we
# ask for an actual bug number. If it can't find any bugs that
# match the keyword, then we set the count to be zero, ignoring
# what it had responded.
$bugs
=
'none'
;
}
if
(
$line_count
==
$max_table_size
)
{
print
"</table>\n$tableheader"
;
$line_count
=
0
;
...
...
queryhelp.cgi
View file @
78b4d31f
...
...
@@ -575,19 +575,14 @@ my $line_count = 0;
my
$max_table_size
=
50
;
SendSQL
(
"SELECT keyworddefs.name, keyworddefs.description,
COUNT(keywords.bug_id)
, keywords.bug_id
COUNT(keywords.bug_id)
FROM keyworddefs LEFT JOIN keywords ON keyworddefs.id=keywords.keywordid
GROUP BY keyworddefs.id
ORDER BY keyworddefs.name"
);
while
(
MoreSQLData
())
{
my
(
$name
,
$description
,
$bugs
,
$onebug
)
=
FetchSQLData
();
if
(
$bugs
&&
$onebug
)
{
# This 'onebug' stuff is silly hackery for old versions of
# MySQL that seem to return a count() of 1 even if there are
# no matching. So, we ask for an actual bug number. If it
# can't find any bugs that match the keyword, then we set the
# count to be zero, ignoring what it had responded.
my
(
$name
,
$description
,
$bugs
)
=
FetchSQLData
();
if
(
$bugs
)
{
my
$q
=
url_quote
(
$name
);
$bugs
=
qq{<A HREF="buglist.cgi?keywords=$q">$bugs</A>}
;
}
else
{
...
...
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