From 760b84f6acfcd895b0e381bc636825a80c8e042d Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 2 Feb 2009 06:34:40 +0000 Subject: [PATCH] - Fix volunteer reports to only show volunteers - Also, show volunteers that haven't signed up for anything yet --- admin/reports_volunteers.inc.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/admin/reports_volunteers.inc.php b/admin/reports_volunteers.inc.php index 4789714b..debc0149 100644 --- a/admin/reports_volunteers.inc.php +++ b/admin/reports_volunteers.inc.php @@ -94,12 +94,6 @@ $report_volunteers_fields = array( 'table' => 'volunteer_positions.name', 'components' => array('signup')), -/* 'language' => array( - 'name' => 'Project -- Language', - 'header' => 'Lang', - 'width' => 1.00, - 'table' => 'projects.language' ), -*/ 'fair_year' => array ( 'name' => 'Fair -- Year', 'header' => 'Year', @@ -135,14 +129,14 @@ $report_volunteers_fields = array( ON (users.id=volunteer_positions_signup.users_id) LEFT JOIN volunteer_positions ON (volunteer_positions_signup.volunteer_positions_id=volunteer_positions.id)"; - $signup_where = "AND volunteer_positions_signup.year = '$year'"; + $signup_where = "AND (volunteer_positions_signup.year = '$year' OR volunteer_positions_signup.year IS NULL)"; } $q = " FROM users $signup_join WHERE - users.complete='yes' + users.types LIKE '%volunteer%' $signup_where ";