Skip to content
Snippets Groups Projects
Commit 1cfbee7a authored by Alexander Bias's avatar Alexander Bias
Browse files

Bugfix: Teacher filter showed teachers twice or even multiple times

parent f98ef9de
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ This plugin requires Moodle 2.8+ ...@@ -13,6 +13,7 @@ This plugin requires Moodle 2.8+
Changes Changes
------- -------
* 2014-02-22 - Bugfix: Teacher filter showed teachers twice or even multiple times, Thanks to Mario Wehr
* 2014-02-22 - Bugfix: Term filter might have listed terms twice; Thanks to Michael Veit * 2014-02-22 - Bugfix: Term filter might have listed terms twice; Thanks to Michael Veit
* 2014-01-29 - Check compatibility for Moodle 2.8, no functionality change * 2014-01-29 - Check compatibility for Moodle 2.8, no functionality change
* 2014-10-20 - Bugfix: There were problems with the term filter and courses which start on the term start day and / or term starting on january 1st * 2014-10-20 - Bugfix: There were problems with the term filter and courses which start on the term start day and / or term starting on january 1st
......
...@@ -436,7 +436,7 @@ class block_course_overview_campus extends block_base { ...@@ -436,7 +436,7 @@ class block_course_overview_campus extends block_base {
if ($coc_config->teachercoursefilter == true || $coc_config->secondrowshowteachername == true) { if ($coc_config->teachercoursefilter == true || $coc_config->secondrowshowteachername == true) {
// Get course teachers based on global teacher roles // Get course teachers based on global teacher roles
if (count($teacherroles) > 0) { if (count($teacherroles) > 0) {
$courseteachers = get_role_users($teacherroles, $context, true, 'ra.id, u.lastname, u.firstname, r.sortorder', 'u.lastname, u.firstname'); $courseteachers = get_role_users($teacherroles, $context, true, 'ra.id, u.id, u.lastname, u.firstname, r.sortorder', 'u.lastname, u.firstname');
} }
else { else {
$courseteachers = array(); $courseteachers = array();
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$plugin->component = 'block_course_overview_campus'; $plugin->component = 'block_course_overview_campus';
$plugin->version = 2014111001; $plugin->version = 2014111002;
$plugin->release = '2.8 (Build: 2015022200)'; $plugin->release = '2.8 (Build: 2015022201)';
$plugin->requires = 2014111000; $plugin->requires = 2014111000;
$plugin->maturity = MATURITY_STABLE; $plugin->maturity = MATURITY_STABLE;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment