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

@@ -32,7 +32,9 @@ function booking_confirm_page() {
if ($person) { if ($person) {
//load all the fields //load all the fields
$node = node_load($person->nid); $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 //maximum length for invoice id is 127 characters
$invoiceid = $person->nid . '_' . $node->booking_eventid . '_' . $node->booking_lastname . '-' . $node->booking_firstname; $invoiceid = $person->nid . '_' . $node->booking_eventid . '_' . $node->booking_lastname . '-' . $node->booking_firstname;
$invoiceid = substr($invoiceid, 0, 126); $invoiceid = substr($invoiceid, 0, 126);