mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 08:09:47 +02:00
MDL-27140 weeks course format - incorrect roll of dates on hidden sections
Credit goes to Nikhil Gupta, big thanks!
This commit is contained in:
parent
804ebc77b8
commit
162bbbe2f4
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ function callback_weeks_get_section_name($course, $section) {
|
||||||
foreach ($sections as $sec) {
|
foreach ($sections as $sec) {
|
||||||
if ($sec->id == $section->id) {
|
if ($sec->id == $section->id) {
|
||||||
break;
|
break;
|
||||||
} else if ($sec->visible && $sec->section != 0) {
|
} else if ($sec->section != 0) {
|
||||||
$weekdate += 604800;
|
$weekdate += 604800;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue