From 2328f54721a0efe9c5f1ab33932b7035312db18a Mon Sep 17 00:00:00 2001 From: justin Date: Sat, 4 Apr 2009 04:03:05 +0000 Subject: [PATCH] Modify fix in r1448 to select project state based on the config variable for it --- admin/judges_teams_projects.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/admin/judges_teams_projects.php b/admin/judges_teams_projects.php index 041df01..1969055 100644 --- a/admin/judges_teams_projects.php +++ b/admin/judges_teams_projects.php @@ -209,9 +209,8 @@ if( ($action=="edit" || $action=="assign" ) && $edit) projects, registrations WHERE - projectnumber is not null AND - (registrations.status='complete' OR - registrations.status='paymentpending' ) AND + projectnumber is not null + " . getJudgingEligibilityCode(). " AND projects.registrations_id=registrations.id AND projects.year='".$config['FAIRYEAR']."' ORDER BY @@ -229,9 +228,8 @@ if( ($action=="edit" || $action=="assign" ) && $edit) LEFT JOIN judges_teams_timeslots_projects_link ON projects.id = judges_teams_timeslots_projects_link.projects_id, registrations WHERE - projectnumber is not null AND - (registrations.status='complete' OR - registrations.status='paymentpending' ) AND + projectnumber is not null + " . getJudgingEligibilityCode(). " AND projects.registrations_id=registrations.id AND judges_teams_timeslots_projects_link.projects_id IS NULL AND projects.year='".$config['FAIRYEAR']."'