Skip to content

Commit

Permalink
FCAN-86 Add additional Event address fields for use in template files
Browse files Browse the repository at this point in the history
  • Loading branch information
agileware-iris committed Nov 24, 2024
1 parent 8f4a47c commit 6093b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest/json-all-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function get_events_all() {
$events = array();

$eventQuery = Event::get(FALSE)
->addSelect('id', 'title', 'summary', 'description', 'event_type_id:label', 'start_date', 'end_date', 'address.street_address', 'address.street_number', 'address.street_number_suffix', 'address.street_name', 'address.street_type', 'address.country_id:label', 'is_online_registration', ...$extra_fields)
->addSelect('id', 'title', 'summary', 'description', 'event_type_id:label', 'start_date', 'end_date', 'address.street_address', 'address.supplemental_address_1', 'address.supplemental_address_2', 'address.supplemental_address_3', 'address.street_number', 'address.street_number_suffix', 'address.street_name', 'address.street_type', 'address.state_province_id:abbr', 'address.state_province_id:label', 'address.city', 'address.country_id:label', 'is_online_registration', ...$extra_fields)
->addJoin('LocBlock AS loc_block', 'LEFT', ['loc_block_id', '=', 'loc_block_id.id'])
->addJoin('Address AS address', 'LEFT', ['loc_block.address_id', '=', 'address.id'])
->addWhere('start_date', '>=', $start_date)
Expand Down

0 comments on commit 6093b3d

Please sign in to comment.