Comment out code not really required in CSV report

This commit is contained in:
2016-05-04 11:32:02 +10:00
parent 0d7ee90292
commit 2676342da7

View File

@@ -643,10 +643,11 @@ function booking_csv_report() {
'booking_rtrnflight_destination_ts', 'booking_timestamp', 'booking_flight_datetime_inbound', 'booking_flight_datetime_outbound'); 'booking_rtrnflight_destination_ts', 'booking_timestamp', 'booking_flight_datetime_inbound', 'booking_flight_datetime_outbound');
$number_only_fields = array('booking_postcode', 'booking_mobile', 'booking_phone'); $number_only_fields = array('booking_postcode', 'booking_mobile', 'booking_phone');
//this isn't required since we already have the info directly as a field
//so there is no need to rewrite the ID field with a user-friendly description
//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();
@@ -762,12 +763,14 @@ function booking_csv_report() {
continue; continue;
} }
/*
//this is not required since node_load already has the room location description for each attendee
//room location //room location
if ($key == 'booking_room_location_id') { 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; continue;
} }
*/
//room bed type //room bed type
if ($key == 'booking_room_bedtype') { if ($key == 'booking_room_bedtype') {