diff --git a/admin/reports_fundraising.inc.php b/admin/reports_fundraising.inc.php index fe85d59..920de86 100644 --- a/admin/reports_fundraising.inc.php +++ b/admin/reports_fundraising.inc.php @@ -87,6 +87,13 @@ $report_fundraisings_fields = array( 'table' => 'users.organization', 'components' => array('users') ), + 'position' => array( + 'name' => 'Contact -- Position', + 'header' => 'Position', + 'width' => 2, + 'table' => 'users_sponsor.position', + 'components' => array('users') ), + 'address' => array( 'start_option_group' => 'Contact Address', 'name' => 'Contact Address -- Street', @@ -156,7 +163,8 @@ $report_fundraisings_fields = array( if(in_array('users', $components)) { $users_from = 'LEFT JOIN fundraising_campaigns_users_link ON fundraising_campaigns.id=fundraising_campaigns_users_link.fundraising_campaigns_id - LEFT JOIN users ON users.uid=fundraising_campaigns_users_link.users_uid'; + LEFT JOIN users ON users.uid=fundraising_campaigns_users_link.users_uid + LEFT JOIN users_sponsor ON users_sponsor.users_id=users.id'; $users_where = "users.deleted!='yes' AND"; }