From 1d4af9ac392cacd9774ed300efc0b53aae29b4e0 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sat, 18 Jun 2016 19:16:35 +1000 Subject: [PATCH] tweak to phone number handling in CSV --- booking.regn_form.inc | 2 ++ booking.reports.inc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/booking.regn_form.inc b/booking.regn_form.inc index d2210ab..71dabd7 100644 --- a/booking.regn_form.inc +++ b/booking.regn_form.inc @@ -1260,6 +1260,8 @@ function booking_form_submit($form, &$form_state) function _booking_form_submit_post_triggers($node) { global $event; + + //do these triggers really do anything? The partner id and bf/gf id won't be set in initial submit //if booking_partner_id is set, make sure the nid it refers to has this node as its booking_partner_id if ($node->booking_partner_id != 0) { diff --git a/booking.reports.inc b/booking.reports.inc index b70c195..847b82d 100644 --- a/booking.reports.inc +++ b/booking.reports.inc @@ -641,7 +641,7 @@ function booking_csv_report() { //keep a list of any fields that we need to handle as dates $datetime_fields = array('booking_outflight_origin_ts', 'booking_outflight_destination_ts', 'booking_rtrnflight_origin_ts', 'booking_rtrnflight_destination_ts', 'booking_timestamp', 'booking_flight_datetime_inbound', 'booking_flight_datetime_outbound'); - $number_only_fields = array('booking_postcode', 'booking_mobile', 'booking_phone'); + $number_only_fields = array('booking_postcode', 'booking_mobile', 'booking_phone', 'booking_guardian_phone', 'booking_guardian_phone_alt'); //this isn't required since we already have the info directly as a field //so there is no need to rewrite the ID field with a user-friendly description