Possibly fix room locations lookup

This commit is contained in:
2016-05-04 11:11:21 +10:00
parent fc4b847368
commit c2c0b68881

View File

@@ -644,7 +644,6 @@ function booking_csv_report() {
$number_only_fields = array('booking_postcode', 'booking_mobile', 'booking_phone');
//look up room location descriptions for presenting a friendly name rather than an ID
$room_locations = array();
$room_query = db_query("SELECT * FROM {booking_room_locations} WHERE booking_roomlocation_active = 'Y'");
$room_locations = $room_query->fetchAllAssoc('lid');
@@ -765,7 +764,7 @@ function booking_csv_report() {
//room location
if ($key == 'booking_room_location_id') {
//$output[] = _booking_room_location_lookup($value);
$output[] = $room_locations[$value];
$output[] = $room_locations->$value->booking_roomlocation_descrip;
continue;
}