take out some debugging from travel form

This commit is contained in:
Nathan Coad
2018-05-08 19:26:48 +10:00
parent e5dd203d1d
commit a9065a28b7

View File

@@ -112,12 +112,12 @@ function travel_form($node, &$form_state, $db_node = NULL, $inserting = FALSE, $
//there's already info in $node so use that
if (!empty($db_node)) {
$data = $db_node;
watchdog('booking_debug', "<pre>Travel form loaded from travel page:\n@info</pre>", array('@info' => print_r( $data, true)));
//watchdog('booking_debug', "<pre>Travel form loaded from travel page:\n@info</pre>", array('@info' => print_r( $data, true)));
}
//otherwise rely on the form state from the previous submission
else {
$data = $form_state['node'];
watchdog('booking_debug', "<pre>Travel form loaded directly:\n@info</pre>", array('@info' => print_r( $data, true)));
//watchdog('booking_debug', "<pre>Travel form loaded directly:\n@info</pre>", array('@info' => print_r( $data, true)));
}
//get info from the database if we don't have it
@@ -143,7 +143,7 @@ function travel_form($node, &$form_state, $db_node = NULL, $inserting = FALSE, $
}
}
else {
watchdog('booking_debug', "<pre>Travel form not querying database for missing details</pre>");
//watchdog('booking_debug', "<pre>Travel form not querying database for missing details</pre>");
$booking_dietary = $data->booking_dietary;
$booking_medical_conditions = $data->booking_medical_conditions;
//an empty value is zero in this case