]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Check qa_contact IDs.
authorterry%netscape.com <>
Sat, 6 Mar 1999 07:08:23 +0000 (07:08 +0000)
committerterry%netscape.com <>
Sat, 6 Mar 1999 07:08:23 +0000 (07:08 +0000)
sanitycheck.cgi

index db9c092eb67706fed7ad1ff42ca9ae2ca754e537..0d2f4072f3cbe20f72e64e8b08857d7984e4916e 100755 (executable)
@@ -107,13 +107,13 @@ while (@row = FetchSQLData()) {
 undef $profid{0};
 
 
-Status("Checking reporter/assigned_to ids");
-SendSQL("select bug_id,reporter,assigned_to from bugs");
+Status("Checking reporter/assigned_to/qa_contact ids");
+SendSQL("select bug_id,reporter,assigned_to,qa_contact from bugs");
 
 my %bugid;
 
 while (@row = FetchSQLData()) {
-    my($id, $reporter, $assigned_to) = (@row);
+    my($id, $reporter, $assigned_to, $qa_contact) = (@row);
     $bugid{$id} = 1;
     if (!defined $profid{$reporter}) {
         Alert("Bad reporter $reporter in " . BugLink($id));
@@ -121,6 +121,9 @@ while (@row = FetchSQLData()) {
     if (!defined $profid{$assigned_to}) {
         Alert("Bad assigned_to $assigned_to in" . BugLink($id));
     }
+    if ($qa_contact != 0 && !defined $profid{$qa_contact}) {
+        Alert("Bad qa_contact $qa_contact in" . BugLink($id));
+    }
 }
 
 Status("Checking CC table");