Possibly fix room locations lookup
This commit is contained in:
@@ -644,7 +644,6 @@ function booking_csv_report() {
|
|||||||
$number_only_fields = array('booking_postcode', 'booking_mobile', 'booking_phone');
|
$number_only_fields = array('booking_postcode', 'booking_mobile', 'booking_phone');
|
||||||
|
|
||||||
//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_locations = array();
|
|
||||||
$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');
|
||||||
|
|
||||||
@@ -765,7 +764,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];
|
$output[] = $room_locations->$value->booking_roomlocation_descrip;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user