From b957a965c90f99d45dd4f3f0ff4799336c80e314 Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 7 May 2010 07:29:28 +0000 Subject: [PATCH] Add position field. James: I havne't tested this, Don't have any sponsors in my local DB, if you could run a test on it that'd be great :) --- admin/reports_fundraising.inc.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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"; }