rename booking_event_id in booking_person table
This commit is contained in:
@@ -68,7 +68,7 @@ function booking_roomallocations_view_summary() {
|
||||
$query->leftJoin('booking_room_definition', 'r', 'r.rid = m.booking_roomid');
|
||||
$query->leftJoin('booking_room_locations', 'l', 'l.lid = r.booking_room_location_id');
|
||||
$db_and = db_and();
|
||||
$db_and->condition('p.booking_event_id', $event->eid, '=');
|
||||
$db_and->condition('p.booking_eventid', $event->eid, '=');
|
||||
$db_and->condition('p.booking_status', 1, '=');
|
||||
$query->condition($db_and);
|
||||
$query->fields('p')->fields('m')->fields('r')->fields('l');
|
||||
@@ -468,7 +468,7 @@ function booking_rooms_allocate_form($node, &$form_state, $location_id) {
|
||||
//query for attendees
|
||||
$query = db_query("SELECT nid, booking_firstname, booking_lastname, booking_gender, booking_dob, booking_partner_id " .
|
||||
" FROM {booking_person} " .
|
||||
" WHERE booking_event_id = :eid and (booking_status=1 or booking_status=5) order by booking_lastname, booking_firstname",
|
||||
" WHERE booking_eventid = :eid and (booking_status=1 or booking_status=5) order by booking_lastname, booking_firstname",
|
||||
array(':eid' => $event->eid));
|
||||
|
||||
//make a list of all attendees that are booked in
|
||||
@@ -844,7 +844,7 @@ function booking_rooms_view_form($node, &$form_state, $location_id) {
|
||||
//status 1 is coming, status 5 is hosts
|
||||
$attendees = db_query("SELECT nid, booking_firstname, booking_lastname, booking_gender, booking_dob, booking_partner_id " .
|
||||
" FROM {booking_person} " .
|
||||
" WHERE booking_event_id = :eid and (booking_status=1 or booking_status=5) order by booking_lastname, booking_firstname",
|
||||
" WHERE booking_eventid = :eid and (booking_status=1 or booking_status=5) order by booking_lastname, booking_firstname",
|
||||
array(':eid' => $event->eid))->fetchAllAssoc('nid');
|
||||
|
||||
//define the header
|
||||
|
Reference in New Issue
Block a user