From 572242bc14fa33b888584aba850d84b2d415a0bf Mon Sep 17 00:00:00 2001 From: james Date: Sat, 29 Mar 2008 19:02:43 +0000 Subject: [PATCH] Only consider judges teams from the current fair year when calculating what judging team number to start numbering at --- admin/judges_sa.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/judges_sa.php b/admin/judges_sa.php index 04aba1b..f3a4963 100644 --- a/admin/judges_sa.php +++ b/admin/judges_sa.php @@ -573,7 +573,7 @@ function pr_judge(&$jt, $jid) /* Find the maximum judging team number */ -$q = mysql_query("SELECT MAX(num) as max FROM judges_teams"); +$q = mysql_query("SELECT MAX(num) as max FROM judges_teams WHERE year='{$config['FAIRYEAR']}'"); $r = mysql_fetch_object($q); $max_jteam_num = $r->max;