more debug
This commit is contained in:
@@ -124,12 +124,16 @@ function travel_form($node, &$form_state, $inserting = FALSE, $node = NULL, $tok
|
|||||||
array(':nid' => $data->nid))->fetchObject();
|
array(':nid' => $data->nid))->fetchObject();
|
||||||
|
|
||||||
if ($person) {
|
if ($person) {
|
||||||
|
watchdog('booking_debug', "<pre>Person info from database:\n@info</pre>", array('@info' => print_r( $person, true)));
|
||||||
$booking_dietary = $person->booking_dietary;
|
$booking_dietary = $person->booking_dietary;
|
||||||
$booking_medical_conditions = $person->booking_medical_conditions;
|
$booking_medical_conditions = $person->booking_medical_conditions;
|
||||||
//an empty value is zero in this case
|
//an empty value is zero in this case
|
||||||
$booking_bf_gf_nid = $person->booking_bf_gf_nid == 0 ? '' : $person->booking_bf_gf_nid;
|
$booking_bf_gf_nid = $person->booking_bf_gf_nid == 0 ? '' : $person->booking_bf_gf_nid;
|
||||||
$booking_roommate = $person->booking_room_mate1;
|
$booking_roommate = $person->booking_room_mate1;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
watchdog('booking_debug', "<pre>Failed to retrieve person from database using nid from data variable:\n@info</pre>", array('@info' => print_r( $data, true)));
|
||||||
|
}
|
||||||
|
|
||||||
//form starts here
|
//form starts here
|
||||||
//store the node id
|
//store the node id
|
||||||
|
Reference in New Issue
Block a user