fix variety admin to only show current event
This commit is contained in:
@@ -14,7 +14,8 @@ function booking_variety_admin() {
|
||||
// tabledrag example http://dropbucket.org/node/204
|
||||
$form = array ();
|
||||
$options = array ();
|
||||
$result = db_query("SELECT * from {booking_variety_timeslots}");
|
||||
$result = db_query("SELECT * FROM {booking_variety_timeslots} WHERE booking_eventid = :eid",
|
||||
array(':eid' => $event->eid));
|
||||
|
||||
$header = array (
|
||||
'eid' => t('Event'),
|
||||
@@ -152,7 +153,7 @@ function booking_variety_timeslot_form($node, &$form_state, $create, $editid = 0
|
||||
* Function to submit data for a new variety session timeslot
|
||||
*/
|
||||
function booking_variety_timeslot_form_submit($form, &$form_state) {
|
||||
global $event;
|
||||
global $event;
|
||||
$values = $form_state['input'];
|
||||
|
||||
if ($form_state['values']['op'] == 'Create') {
|
||||
|
Reference in New Issue
Block a user