diff --git a/booking.install b/booking.install index ba4a0d1..ccb5ff6 100644 --- a/booking.install +++ b/booking.install @@ -760,16 +760,6 @@ function booking_update_7250() { } */ -/** -* Add field to store waiting list position -*/ -function booking_update_7251() { - $spec = array('type' => 'int', 'length' => '11', 'default' => 0, 'not null' => FALSE); - db_add_field('booking_person', 'booking_waitlist_pos', $spec); - //update the view to match the new table definition - _booking_node_create_mysqlview(); -} - /** * Add custom cache table */ @@ -781,6 +771,16 @@ function booking_update_7252() { } } +/** +* Add field to store waiting list position +*/ +function booking_update_7253() { + $spec = array('type' => 'int', 'length' => '11', 'default' => 0, 'not null' => FALSE); + db_add_field('booking_person', 'booking_waitlist_pos', $spec); + //update the view to match the new table definition + _booking_node_create_mysqlview(); +} + /** * Implementation of hook_install(). */ diff --git a/booking.reports.inc b/booking.reports.inc index 6b85a04..6eefbdf 100644 --- a/booking.reports.inc +++ b/booking.reports.inc @@ -647,7 +647,7 @@ function booking_waitinglist_page() { FROM ( SELECT p.nid, p.booking_firstname, p.booking_lastname, p.booking_state, p.booking_country, p.booking_readinggroup, pay.booking_payment_date, p.booking_status FROM {booking_person} p, {booking_payment} pay - WHERE p.booking_eventid = :eid and p.nid = pay.booking_person_nid and ( booking_status = 2 or booking_status = 4) + WHERE p.booking_eventid = :eid and p.nid = pay.booking_person_nid and ( p.booking_status = 2 or p.booking_status = 4) ) AS booking ORDER BY booking_status, booking_payment_date', array(':eid' => $event->eid));