add debugging
This commit is contained in:
@@ -798,6 +798,7 @@ function _booking_waitinglist_update_trigger()
|
|||||||
$counter = 1;
|
$counter = 1;
|
||||||
|
|
||||||
foreach ($waiting_list as $person) {
|
foreach ($waiting_list as $person) {
|
||||||
|
watchdog('booking_debug', "Updating node !nid to have waitlist position of !counter", array('!nid' => $person->nid, '!counter' => $counter));
|
||||||
db_update('booking_person')
|
db_update('booking_person')
|
||||||
->fields(array(
|
->fields(array(
|
||||||
'booking_waitlist_pos' => $counter++,
|
'booking_waitlist_pos' => $counter++,
|
||||||
@@ -805,10 +806,8 @@ function _booking_waitinglist_update_trigger()
|
|||||||
->condition('nid', $person->nid)
|
->condition('nid', $person->nid)
|
||||||
->execute();
|
->execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function booking_view($node, $view_mode) {
|
function booking_view($node, $view_mode) {
|
||||||
global $event;
|
global $event;
|
||||||
$rows = array();
|
$rows = array();
|
||||||
|
Reference in New Issue
Block a user