rename booking_event_id in booking_person table

This commit is contained in:
2016-05-03 22:49:45 +10:00
parent 80cd8d157a
commit 3ce77ebea6
14 changed files with 51 additions and 43 deletions

View File

@@ -350,7 +350,7 @@ function booking_form($node, &$form_state, $inserting = FALSE)
$partner_options[] = '';
//get a list of possible partners
$partners = db_query("SELECT nid, booking_firstname, booking_lastname, booking_partner_id FROM {booking_person} " . "where booking_event_id = :eid and booking_married='Y' order by booking_lastname, booking_firstname", array(
$partners = db_query("SELECT nid, booking_firstname, booking_lastname, booking_partner_id FROM {booking_person} " . "where booking_eventid = :eid and booking_married='Y' order by booking_lastname, booking_firstname", array(
':eid' => $event->eid
));
@@ -1105,7 +1105,7 @@ function _booking_validate($node, &$form_state)
//Verify this is not a duplicate registration
//try and find the person in the database for this event
$person = db_query("SELECT person.nid, person.booking_tempid " . "FROM {booking_person} person " . "WHERE booking_firstname = :first AND booking_lastname = :last AND booking_dob = :dob AND booking_event_id = :eid", array(
$person = db_query("SELECT person.nid, person.booking_tempid " . "FROM {booking_person} person " . "WHERE booking_firstname = :first AND booking_lastname = :last AND booking_dob = :dob AND booking_eventid = :eid", array(
':first' => $form_state['booking_firstname'],
':last' => $form_state['booking_lastname'],
':dob' => $dob_check,
@@ -1387,7 +1387,7 @@ function booking_form_submit($form, &$form_state)
//internal fields
$tempid = _booking_uuidSecure();
$node->booking_tempid = $tempid;
$node->booking_event_id = $event->eid;
$node->booking_eventid = $event->eid;
$node->booking_amount_paid = 0;
$node->booking_total_pay_reqd = $payment_total_price->booking_price;