Wow committee reports were pretty broken.. fixed them, and added a field for the users title on the committee

This commit is contained in:
james 2012-03-16 17:32:28 +00:00
parent 726bfc0ef7
commit d8f4228a59

View File

@ -95,6 +95,12 @@ $report_committees_fields = array(
'width' => 2,
'table' => 'users.organization'),
'title' => array(
'name' => 'Committee Member -- Title on Committee',
'header' => 'Title',
'width' => 2,
'table' => 'committees_link.title'),
'firstaid' => array(
'name' => 'Committee Member -- First Aid Training',
'header' => 'F.Aid',
@ -135,9 +141,14 @@ $report_committees_fields = array(
}
*/
$q = " FROM
users
users,
committees,
committees_link
WHERE
users.types LIKE '%committee%'
AND committees_link.committees_id=committees.id
AND committees_link.users_uid=users.uid
AND users.year=$year
";
return $q;