debug
This commit is contained in:
@@ -114,12 +114,13 @@ function travel_form($node, &$form_state, $inserting = FALSE, $node = NULL, $tok
|
|||||||
//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['input'];
|
||||||
|
watchdog('booking_debug', "<pre>Travel form:\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
|
||||||
$person = db_query("SELECT booking_dietary, booking_medical_conditions, booking_bf_gf_nid, booking_partner_id, booking_room_mate1 " .
|
$person = db_query("SELECT booking_dietary, booking_medical_conditions, booking_bf_gf_nid, booking_partner_id, booking_room_mate1 " .
|
||||||
"FROM {booking_person} " . "WHERE nid = :nid ",
|
"FROM {booking_person} " . "WHERE nid = :nid ",
|
||||||
array(':nid' => $node->nid <> NULL ? $node->nid : $data->booking_person_nid))->fetchObject();
|
array(':nid' => isset($node->nid) ? $node->nid : $data->booking_person_nid))->fetchObject();
|
||||||
|
|
||||||
if ($person) {
|
if ($person) {
|
||||||
$booking_dietary = $person->booking_dietary;
|
$booking_dietary = $person->booking_dietary;
|
||||||
|
Reference in New Issue
Block a user