Add room locations debugging info for CSV report

This commit is contained in:
2016-05-04 11:19:53 +10:00
parent c2c0b68881
commit 90fdf824f7

View File

@@ -646,6 +646,7 @@ function booking_csv_report() {
//look up room location descriptions for presenting a friendly name rather than an ID //look up room location descriptions for presenting a friendly name rather than an ID
$room_query = db_query("SELECT * FROM {booking_room_locations} WHERE booking_roomlocation_active = 'Y'"); $room_query = db_query("SELECT * FROM {booking_room_locations} WHERE booking_roomlocation_active = 'Y'");
$room_locations = $room_query->fetchAllAssoc('lid'); $room_locations = $room_query->fetchAllAssoc('lid');
watchdog('booking_debug', "<pre>CSV Room locations description test:\n@info</pre>", array('@info' => print_r( $room_locations[3], true)));
//look up the titles of the study groups and add to array for updating in the header //look up the titles of the study groups and add to array for updating in the header
$studygroup_descriptions = array(); $studygroup_descriptions = array();
@@ -764,7 +765,7 @@ function booking_csv_report() {
//room location //room location
if ($key == 'booking_room_location_id') { if ($key == 'booking_room_location_id') {
//$output[] = _booking_room_location_lookup($value); //$output[] = _booking_room_location_lookup($value);
$output[] = $room_locations->$value->booking_roomlocation_descrip; $output[] = $room_locations[$value]->booking_roomlocation_descrip;
continue; continue;
} }