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

@@ -70,7 +70,7 @@ function booking_load_query($node_ids = NULL, $fetchAssoc = FALSE)
}
else
{
$query->condition('p.booking_event_id', $event->eid, '=');
$query->condition('p.booking_eventid', $event->eid, '=');
}
//add the database fields we always want to retrieve
@@ -151,7 +151,7 @@ function booking_insert($node) {
db_insert('booking_person')
->fields(array(
'nid' => $node->nid,
'booking_event_id' => $node->booking_event_id,
'booking_eventid' => $node->booking_eventid,
'booking_firstname' => $node->booking_firstname,
'booking_lastname' => $node->booking_lastname,
'booking_dob' => $node->booking_dob,