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 :)
This commit is contained in:
dave 2010-05-07 07:29:28 +00:00
parent 250b717db6
commit b957a965c9

View File

@ -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";
}