Skip to content

Commit

Permalink
Acceptation pull request grp-attestoodle#173
Browse files Browse the repository at this point in the history
  • Loading branch information
dcadiou committed Oct 17, 2024
2 parents a5e116c + bc705cb commit 1deb00e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Release notes
## v1.10.5

- Issue #171 fix

## v1.10.4

- Issue #168 fix,
Expand Down
8 changes: 7 additions & 1 deletion classes/forms/training_milestones_update_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ private function get_moduleslist_by_month($courses) {
$d0 = new \DateTime($classdatefrom['year'].'-'.$classdatefrom['month'].'-01'); // Day is ignored.
$grp = new \stdClass();
$grouping[$nodatestring] = $grp;
$grp = new \stdClass();
$grouping[$outsidedatestring] = $grp;
for ($i = 0; $i < $classdatecount; $i++) {
$grp = new \stdClass();
$grp->id = $this->get_month_identifier($d0);
Expand Down Expand Up @@ -198,7 +200,11 @@ private function get_moduleslist_by_month($courses) {
}
$grp->modulecount = count($grp->filteredactivities);
}
$grp->moduletot = count($grp->activities);
if (isset($grp->activities)) {
$grp->moduletot = count($grp->activities);
} else {
$grp->moduletot = 0;
}
$grp->time = parse_minutes_to_hours($time);
}

Expand Down
6 changes: 3 additions & 3 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

defined('MOODLE_INTERNAL') || die();

$plugin->release = 'v1.10.4'; // The current plugin release.
$plugin->version = 2024101700; // The current plugin version (Date: YYYYMMDDXX).10.
$plugin->release = 'v1.10.5'; // The current plugin release.
$plugin->version = 2024101701; // The current plugin version (Date: YYYYMMDDXX).10.
$plugin->requires = 2019052000; // Requires this Moodle version >= 3.7.
$plugin->supported = [37, 430]; // Moodle 3.7.x and later until 4.3.x are supported.
$plugin->supported = [37, 403]; // Moodle 3.7.x and later until 4.3.x are supported.
$plugin->maturity = MATURITY_STABLE;
$plugin->component = 'tool_attestoodle'; // Full name of the plugin (used for diagnostics).

0 comments on commit 1deb00e

Please sign in to comment.