mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-08 07:53:54 +00:00
Bug 95426 - remove $onebug cruft. Patch by gerv; 2xr=timeless.
This commit is contained in:
parent
7b1e744981
commit
c4f3c92577
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user