rename booking_event_id in booking_person table
This commit is contained in:
@@ -671,7 +671,7 @@ function booking_define_tokens()
|
||||
$booking_times = db_query("SELECT booking_event_start, booking_event_end FROM {booking_event} where eid = :eid",
|
||||
array(':eid' => $event->eid))->fetchObject();
|
||||
|
||||
$regncount_query = db_query("SELECT count(*) as num_ppl FROM {booking_person} where booking_event_id = :eventid and booking_status = 1",
|
||||
$regncount_query = db_query("SELECT count(*) as num_ppl FROM {booking_person} where booking_eventid = :eventid and booking_status = 1",
|
||||
array(':eventid' => $event->eid))
|
||||
->fetchObject();
|
||||
|
||||
@@ -694,7 +694,7 @@ function booking_define_personspecific_tokens($node)
|
||||
|
||||
//get a count of the total number of people booked in to this event
|
||||
//but don't include people who haven't paid or have withdrawn their booking
|
||||
$result = db_query("SELECT count(*) as num_ppl FROM {booking_person} where booking_event_id = :eventid and (booking_status = 1 or booking_status = 2)",
|
||||
$result = db_query("SELECT count(*) as num_ppl FROM {booking_person} where booking_eventid = :eventid and (booking_status = 1 or booking_status = 2)",
|
||||
array(':eventid' => $event->eid))
|
||||
->fetchObject();
|
||||
|
||||
|
Reference in New Issue
Block a user