fix sql query
This commit is contained in:
@@ -699,7 +699,7 @@ function _booking_studygroup_cleanup()
|
|||||||
//search for entries already in the mapping table that have a booking_status of 3 (not coming)
|
//search for entries already in the mapping table that have a booking_status of 3 (not coming)
|
||||||
$to_remove_query = db_query("SELECT m.* FROM {booking_studygroup_mapping} m
|
$to_remove_query = db_query("SELECT m.* FROM {booking_studygroup_mapping} m
|
||||||
inner join {booking_person} p on p.nid = m.booking_node_id
|
inner join {booking_person} p on p.nid = m.booking_node_id
|
||||||
WHERE booking_eventid = :eid AND p.booking_status = 3",
|
WHERE m.booking_eventid = :eid AND p.booking_status = 3",
|
||||||
array(':eid' => $event->eid));
|
array(':eid' => $event->eid));
|
||||||
$to_remove = $to_remove_query->fetchAll();
|
$to_remove = $to_remove_query->fetchAll();
|
||||||
|
|
||||||
|
@@ -59,7 +59,7 @@ function booking_studygroups_csv_report($group_id) {
|
|||||||
$data[$member->booking_session_id][] = implode(' ', $text);
|
$data[$member->booking_session_id][] = implode(' ', $text);
|
||||||
|
|
||||||
}
|
}
|
||||||
watchdog('booking_debug', "<pre>Study Group CSV Report\n@info</pre>", array('@info' => print_r( $data_array, true)));
|
//watchdog('booking_debug', "<pre>Study Group CSV Report\n@info</pre>", array('@info' => print_r( $data_array, true)));
|
||||||
|
|
||||||
//calculate the CSV layout
|
//calculate the CSV layout
|
||||||
$header_array = array_keys($data);
|
$header_array = array_keys($data);
|
||||||
|
Reference in New Issue
Block a user