diff --git a/booking.reports.inc b/booking.reports.inc index afbe912..f0b52cb 100644 --- a/booking.reports.inc +++ b/booking.reports.inc @@ -835,7 +835,9 @@ function booking_csv_report() { //handle dates if ($key == 'booking_dob') { $output[] = format_date($value, 'custom', 'd/m/Y'); - $output[] = '"' . _booking_avg_age($value, 1, $event->booking_event_start) . '"'; + // Add in the processed DOB + $output[] = _booking_avg_age($value, 1, $event->booking_event_start); + //$output[] = '"' . _booking_avg_age($value, 1, $event->booking_event_start) . '"'; continue; } @@ -914,7 +916,7 @@ function booking_csv_report() { //$csv .= $row; } - watchdog('booking_debug', "
CSV report spreadsheet rows\n@info
", array('@info' => print_r( $rows, true))); + //watchdog('booking_debug', "
CSV report spreadsheet rows\n@info
", array('@info' => print_r( $rows, true))); // Create headers for Excel spreadsheet header('Content-disposition: attachment; filename="'.XLSXWriter::sanitize_filename($filename).'"');