rename booking_event_id in booking_person table
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user