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