bug fixes

This commit is contained in:
2014-11-17 18:00:51 +11:00
parent 20c6bc90ad
commit 27a7dfdd69
3 changed files with 3 additions and 2 deletions

View File

@@ -780,7 +780,7 @@ function booking_schema() {
'booking_eventid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
'booking_node_id' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
'booking_studygroup_id' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
'booking_session_id' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10', default => 0),
'booking_session_id' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10', 'default' => 0),
//'booking_is_leader' => array('type' => 'varchar', 'length' => '1', 'not null' => FALSE),
//'booking_is_helper' => array('type' => 'varchar', 'length' => '1', 'not null' => FALSE),
'booking_studygroup_role' => array('type' => 'varchar', 'length' => '100', 'not null' => FALSE, 'default' => 0),

View File

@@ -366,7 +366,7 @@ function booking_menu() {
'title' => 'Add Study Group',
'description' => 'Add Study Group definition',
'page callback' => 'drupal_get_form',
'page arguments' => array('booking_studygroups_add_form', true),
'page arguments' => array('booking_studygroups_define_form', true),
'access arguments' => array("edit study groups"),
'type' => MENU_LOCAL_ACTION,
);

View File

@@ -1627,6 +1627,7 @@ function booking_studygroups_view_form($node, &$form_state, $group_id) {
$is_reading_group = FALSE;
$form = array();
$options = array();
$rows = array();
$last_session = "";
$class_array = array(
0 => "normal-row",