From 5bda75ff47e28da6ba3b151adbc7c876acd3502b Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 1 Jul 2014 11:27:13 +1000 Subject: [PATCH] Tweaks --- booking.helper.inc | 2 ++ booking.register.inc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/booking.helper.inc b/booking.helper.inc index ba2efc8..2baa4a0 100644 --- a/booking.helper.inc +++ b/booking.helper.inc @@ -1287,12 +1287,14 @@ function _booking_leader_helper_email_summary($node) { //check that this study group session has been defined for this attendee and that they if (!empty($node->$sessionid) && $node->$roleid > 0) { + /* //make sure we only add this prefix text once, as soon as we've found a matching role if ($found == FALSE) { $found = TRUE; $rows[] = t("You have been assigned to perform the following roles for study groups:"); } + */ //TODO: use a function for this. //if they're a leader or reserver leader, then the matching person is the helper diff --git a/booking.register.inc b/booking.register.inc index e0966f5..72a409f 100644 --- a/booking.register.inc +++ b/booking.register.inc @@ -1266,7 +1266,7 @@ function _booking_update($node) { 'booking_lastname' => $node->booking_lastname, 'booking_dob' => _date_to_ts($node->booking_dob), 'booking_barcode' => $node->booking_barcode, - 'booking_luckynum' => $node->booking_luckynum, + 'booking_luckynum' => $node->booking_luckynum == '' ? 0 : $node->booking_luckynum, 'booking_passport_num' => $node->booking_passport_num, 'booking_passport_issue_location' => $node->booking_passport_issue_location, 'booking_passport_issue_name' => $node->booking_passport_issue_name,