rename booking_event_id in booking_person table
This commit is contained in:
@@ -112,7 +112,7 @@ function _valid_australian_mobile_number($input)
|
||||
function _booking_check_bookings_full()
|
||||
{
|
||||
global $event;
|
||||
$waitinglist_query = db_query("SELECT count(*) as num_ppl FROM {booking_person} where booking_event_id = :eventid and booking_status = 1",
|
||||
$waitinglist_query = db_query("SELECT count(*) as num_ppl FROM {booking_person} where booking_eventid = :eventid and booking_status = 1",
|
||||
array(':eventid' => $event->eid))
|
||||
->fetchObject();
|
||||
//check the number of people registered against the defined max
|
||||
@@ -139,7 +139,7 @@ function _booking_get_waitinglist_top()
|
||||
|
||||
$result = db_query('SELECT p.nid, p.booking_firstname, p.booking_lastname, pay.booking_payment_date
|
||||
FROM {booking_person} p, {booking_payment} pay
|
||||
WHERE booking_status = 2 and booking_event_id = :eid and p.nid = pay.booking_person_nid
|
||||
WHERE booking_status = 2 and booking_eventid = :eid and p.nid = pay.booking_person_nid
|
||||
ORDER BY pay.booking_payment_date
|
||||
LIMIT 1',
|
||||
array(':eid' => $event->eid));
|
||||
@@ -153,7 +153,7 @@ function _booking_get_waitinglist_top()
|
||||
//in case there's no people with status waiting list, but there is some with missed payment deadline
|
||||
$result = db_query('SELECT p.nid, p.booking_firstname, p.booking_lastname, pay.booking_payment_date
|
||||
FROM {booking_person} p, {booking_payment} pay
|
||||
WHERE booking_status = 4 and booking_event_id = :eid and p.nid = pay.booking_person_nid
|
||||
WHERE booking_status = 4 and booking_eventid = :eid and p.nid = pay.booking_person_nid
|
||||
ORDER BY pay.booking_payment_date
|
||||
LIMIT 1',
|
||||
array(':eid' => $event->eid));
|
||||
|
Reference in New Issue
Block a user