debug travel form

This commit is contained in:
Nathan Coad
2018-01-14 10:57:34 +11:00
parent 7a5cc19de9
commit fdf1534542

View File

@@ -111,12 +111,12 @@ function travel_form($node, &$form_state, $inserting = FALSE, $tokens = NULL)
//there's already info in $node so use that //there's already info in $node so use that
if (!empty($node)) { if (!empty($node)) {
$data = $node; $data = $node;
//watchdog('booking_debug', "<pre>Travel form not-empty node:\n@info</pre>", array('@info' => print_r( $form_state, true))); watchdog('booking_debug', "<pre>Travel form not-empty node:\n@info</pre>", array('@info' => print_r( $node, true)));
} }
//otherwise rely on the form state from the previous submission //otherwise rely on the form state from the previous submission
else { else {
$data = $form_state['input']; $data = $form_state['node'];
//watchdog('booking_debug', "<pre>Travel form empty node:\n@info</pre>", array('@info' => print_r( $data, true))); watchdog('booking_debug', "<pre>Travel form empty node:\n@info</pre>", array('@info' => print_r( $form_state, true)));
} }
//get info about this person from the relevant node id //get info about this person from the relevant node id