debug booking_confirm_page

This commit is contained in:
Nathan Coad
2019-09-02 21:41:36 +10:00
parent 2f2dd62443
commit c293b5423b

View File

@@ -33,6 +33,8 @@ function booking_confirm_page() {
if ($person) {
//load all the fields
$node = node_load($person->nid);
watchdog('booking_debug', 'booking_confirm_page node: <pre>@info</pre>', array('@info' => print_r( $node, true)));
//maximum length for invoice id is 127 characters
$invoiceid = $person->nid . '_' . $node->booking_eventid . '_' . $node->booking_lastname . '-' . $node->booking_firstname;
$invoiceid = substr($invoiceid, 0, 126);