exclude reading group from leader/helper summary

This commit is contained in:
Nathan Coad
2018-06-28 14:51:42 +10:00
parent b71e61dcca
commit 647a44e0ab
2 changed files with 3 additions and 3 deletions

View File

@@ -216,7 +216,7 @@ function _booking_readinggroup_colour_lookup($input = NULL)
$group[] = t('Maroon'); $group[] = t('Maroon');
$group[] = t('Pink'); $group[] = t('Pink');
$group[] = t('Black'); $group[] = t('Black');
$group[] = t('Checks'); $group[] = t('Checks');
$group[] = t('Yellow'); $group[] = t('Yellow');
$group[] = t('Purple'); $group[] = t('Purple');
$group[] = t('White'); $group[] = t('White');

View File

@@ -1680,7 +1680,7 @@ function _booking_studygroup_email_summary($node) {
} }
//look up the titles of the study groups //look up the titles of the study groups
$studygroups_query = db_query("SELECT * FROM {booking_studygroup_list} WHERE booking_eventid = :eid", $studygroups_query = db_query("SELECT * FROM {booking_studygroup_list} WHERE booking_eventid = :eid AND booking_is_readinggroup = 'N'",
array(':eid' => $event->eid)); array(':eid' => $event->eid));
$studygroups = $studygroups_query->fetchAllAssoc('sid'); $studygroups = $studygroups_query->fetchAllAssoc('sid');
@@ -1740,7 +1740,7 @@ function _booking_leader_helper_email_summary($node) {
//display study session data if enabled //display study session data if enabled
if (variable_get('booking_enable_studygroups', 0) == 1) { if (variable_get('booking_enable_studygroups', 0) == 1) {
//look up the titles of the study groups //look up the titles of the study groups
$studygroups_query = db_query("SELECT * FROM {booking_studygroup_list} WHERE booking_eventid = :eid", $studygroups_query = db_query("SELECT * FROM {booking_studygroup_list} WHERE booking_eventid = :eid AND booking_is_readinggroup = 'N'",
array(':eid' => $event->eid)); array(':eid' => $event->eid));
$studygroups = $studygroups_query->fetchAllAssoc('sid'); $studygroups = $studygroups_query->fetchAllAssoc('sid');