more debug
This commit is contained in:
@@ -130,14 +130,13 @@ function travel_form($node, &$form_state, $db_node = NULL, $inserting = FALSE, $
|
||||
|
||||
//check we got results
|
||||
if ($person) {
|
||||
//watchdog('booking_debug', "<pre>Person info from database:\n@info</pre>", array('@info' => print_r( $person, true)));
|
||||
watchdog('booking_debug', "<pre>Person info from database:\n@info</pre>", array('@info' => print_r( $person, true)));
|
||||
$booking_dietary = $person->booking_dietary;
|
||||
$booking_medical_conditions = $person->booking_medical_conditions;
|
||||
//an empty value is zero in this case
|
||||
$booking_bf_gf_nid = $person->booking_bf_gf_nid == 0 ? '' : $person->booking_bf_gf_nid;
|
||||
$booking_partner_id = $person->booking_partner_id == 0 ? '' : $person->booking_partner_id;
|
||||
$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)));
|
||||
|
Reference in New Issue
Block a user