Skip to content

Commit

Permalink
Merge pull request #389 from eileenmcnaughton/increment
Browse files Browse the repository at this point in the history
Hard code FALSE for address address custom data for history report
  • Loading branch information
eileenmcnaughton authored Jul 11, 2020
2 parents 6e9bd4a + 3ec9496 commit 8496081
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CRM/Extendedreport/Form/Report/Contact/AddressHistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,19 @@ class CRM_Extendedreport_Form_Report_Contact_AddressHistory extends CRM_Extended
*/
protected $mergedContacts = [];

/**
* CRM_Extendedreport_Form_Report_Contact_AddressHistory constructor.
*
* @throws \CiviCRM_API3_Exception
*/
public function __construct() {
$addressColumns = $this->getColumns('Address', [
'fields' => TRUE,
'order_bys' => FALSE,
//'fields_defaults' => array('address_name', 'street_address', 'supplemental_address_1', 'supplemental_address_2', 'city', 'state_province_id', 'country_id', 'postal_code', 'county_id'),
'fields_defaults' => ['display_address'],
// More work to be done to figure out how retrieving custom data for this report would look
'extended' => FALSE,
]
)['civicrm_address']['metadata'];

Expand Down

0 comments on commit 8496081

Please sign in to comment.