From d3f8ca00391ae490bf300cfa4d9d2635627e0aab Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 31 May 2016 19:03:39 +1000 Subject: [PATCH] fix for no view existing already --- booking.helper.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/booking.helper.inc b/booking.helper.inc index b0ce770..77b7a47 100644 --- a/booking.helper.inc +++ b/booking.helper.inc @@ -1318,6 +1318,9 @@ function _booking_paypal_form_builder($node, &$form_state, $person, $invoiceid, * This will be used to select which fields to import/export to/from a CSV */ function _booking_get_person_fields() { + //@todo check if the view exists and only call this if necessary + _booking_node_create_mysqlview(); + $list_of_columns = array(); $query = db_query('SHOW COLUMNS FROM {booking_person_view}'); $result = $query->fetchAll();