Skip to content

Commit

Permalink
V2.7.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Aug 19, 2014
1 parent 6f3697c commit 5b370f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
5 changes: 4 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ can be really useful in visualising the issue along with any files you consider

Version Information
===================
19th August 2014 Version 2.7.1.4
1. Fixed issue #11: Moodle notice - https://github.com/gjb2048/moodle-format_topcoll/issues/11.

18th August 2014 Version 2.7.1.3
1. Fixed a few typos.
2. Fixed CONTRIB-5211: Section 5 does not remain expanded when browsing away and back.
Expand Down Expand Up @@ -1117,6 +1120,6 @@ Desired Enhancements

Me
==
G J Barnard MSc. BSc(Hons)(Sndw). MBCS. CEng. CITP. PGCE. - 18th August 2014.
G J Barnard MSc. BSc(Hons)(Sndw). MBCS. CEng. CITP. PGCE. - 19th August 2014.
Moodle profile: http://moodle.org/user/profile.php?id=442195.
Web profile : http://about.me/gjbarnard
10 changes: 5 additions & 5 deletions renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ public function print_multiple_section_page($course, $sections, $mods, $modnames
while ($loopsection <= $course->numsections) {
$nextweekdate = $weekdate - ($weekofseconds);
if ((($thissection->uservisible ||
($thissection->visible && !$thissection->available && $thissection->showavailability))
($thissection->visible && !$thissection->available && !empty($thissection->availableinfo)))
&& ($nextweekdate <= $timenow)) == true) {
$numsections++; // Section not shown so do not count in columns calculation.
}
Expand Down Expand Up @@ -676,13 +676,13 @@ public function print_multiple_section_page($course, $sections, $mods, $modnames
$thissection = $modinfo->get_section_info($section);

/* Show the section if the user is permitted to access it, OR if it's not available
but showavailability is turned on. */
but there is some available info text which explains the reason & should display. */
if (($this->tcsettings['layoutstructure'] != 3) || ($this->userisediting)) {
$showsection = $thissection->uservisible ||
($thissection->visible && !$thissection->available && $thissection->showavailability);
($thissection->visible && !$thissection->available && !empty($thissection->availableinfo));
} else {
$showsection = ($thissection->uservisible ||
($thissection->visible && !$thissection->available && $thissection->showavailability))
($thissection->visible && !$thissection->available && !empty($thissection->availableinfo)))
&& ($nextweekdate <= $timenow);
}
if (($currentsectionfirst == true) && ($showsection == true)) {
Expand All @@ -692,7 +692,7 @@ public function print_multiple_section_page($course, $sections, $mods, $modnames
$showsection = false; // Do not reshow current section.
}
if (!$showsection) {
// Hidden section message is overridden by 'unavailable' control (showavailability option).
// Hidden section message is overridden by 'unavailable' control.
if ($this->tcsettings['layoutstructure'] != 4) {
if (($this->tcsettings['layoutstructure'] != 3) || ($this->userisediting)) {
if (!$course->hiddensections && $thissection->available) {
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
*/
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2014081800;
$plugin->version = 2014081900;
$plugin->maturity = MATURITY_STABLE;
$plugin->requires = 2014051200.00; // 2.7 (Build: 20140512).
$plugin->component = 'format_topcoll';
$plugin->release = '2.7.1.3';
$plugin->release = '2.7.1.4';

0 comments on commit 5b370f2

Please sign in to comment.