From 90fdf824f7cb74ab97df75180285809b75169aeb Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Wed, 4 May 2016 11:19:53 +1000 Subject: [PATCH] Add room locations debugging info for CSV report --- booking.reports.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/booking.reports.inc b/booking.reports.inc index 3a6874d..1bf7975 100644 --- a/booking.reports.inc +++ b/booking.reports.inc @@ -646,6 +646,7 @@ function booking_csv_report() { //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_locations = $room_query->fetchAllAssoc('lid'); + watchdog('booking_debug', "
CSV Room locations description test:\n@info
", 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 $studygroup_descriptions = array(); @@ -764,7 +765,7 @@ function booking_csv_report() { //room location if ($key == 'booking_room_location_id') { //$output[] = _booking_room_location_lookup($value); - $output[] = $room_locations->$value->booking_roomlocation_descrip; + $output[] = $room_locations[$value]->booking_roomlocation_descrip; continue; }