summaryrefslogtreecommitdiffstats
path: root/sanitycheck.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-07-06 00:17:36 +0200
committerterry%mozilla.org <>2000-07-06 00:17:36 +0200
commit5c395c38aab8dfad760cccc63adea988ef1bd540 (patch)
treedee672b51bda5d16297205b03d553962d37741b3 /sanitycheck.cgi
parent9f48b25d34f350bb3a146e4585ad49dc519a73bf (diff)
downloadbugzilla-5c395c38aab8dfad760cccc63adea988ef1bd540.tar.gz
bugzilla-5c395c38aab8dfad760cccc63adea988ef1bd540.tar.xz
If bugs with an invalid product/component are found, provide a link to bring up the list of invalid bugs.
Diffstat (limited to 'sanitycheck.cgi')
-rwxr-xr-xsanitycheck.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/sanitycheck.cgi b/sanitycheck.cgi
index e381aaa82..2dc7035bc 100755
--- a/sanitycheck.cgi
+++ b/sanitycheck.cgi
@@ -227,7 +227,9 @@ foreach my $ref (@checklist) {
my ($product, $component) = (@$ref);
SendSQL("select count(*) from components where program = " . SqlQuote($product) . " and value = " . SqlQuote($component));
if (FetchOneColumn() != 1) {
- Alert("Bug(s) found with invalid product/component: $product/$component");
+ my $link = "buglist.cgi?product=" . url_quote($product) .
+ "&component=" . url_quote($component);
+ Alert(qq{Bug(s) found with invalid product/component: $product/$component (<a href="$link">bug list</a>)});
}
}