From cd83d885d812e82eca2b93e3b7da65479c13e851 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 29 Jun 2017 12:55:47 +1000 Subject: [PATCH] test tweak to booking_insert --- booking.earlyaccess_admin.inc | 2 ++ booking.regn_node.inc | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/booking.earlyaccess_admin.inc b/booking.earlyaccess_admin.inc index 543f34d..73ff92b 100644 --- a/booking.earlyaccess_admin.inc +++ b/booking.earlyaccess_admin.inc @@ -11,6 +11,8 @@ */ function booking_earlyaccess_admin() { + // @todo - list all early access codes for the current event, whether they're available, and who used them if not + global $event; $output = ""; $header = array('Study Group', 'Session Count', 'Reading Group?', 'Edit Definition'); diff --git a/booking.regn_node.inc b/booking.regn_node.inc index 14b71a2..a00d43e 100644 --- a/booking.regn_node.inc +++ b/booking.regn_node.inc @@ -276,6 +276,9 @@ function booking_insert($node) { watchdog('booking_debug', "
Inserting node:\n@info
", array('@info' => print_r($node, TRUE))); //TODO: Generalise this by using the keys from $node instead of hard coding everything + db_insert('booking_person')->fields($node)->execute(); + + /* db_insert('booking_person') ->fields(array( 'nid' => $node->nid, @@ -348,6 +351,7 @@ function booking_insert($node) { 'booking_comment_field' => $node->booking_comment_field, )) ->execute(); + */ } /**