Skip to content

Commit

Permalink
Merge pull request #35 from bdecentgmbh/dev
Browse files Browse the repository at this point in the history
Merge to main for release
  • Loading branch information
stefanscholz authored Mar 2, 2024
2 parents dbfb4f0 + 4745b8c commit 5981b85
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
fail-fast: false
matrix:
include:
- php: '8.1'
moodle-branch: 'MOODLE_403_STABLE'
database: 'pgsql'
- php: '8.0'
moodle-branch: 'MOODLE_402_STABLE'
database: 'pgsql'
Expand All @@ -42,9 +45,6 @@ jobs:
- php: '7.4'
moodle-branch: 'MOODLE_401_STABLE'
database: 'pgsql'
- php: '7.4'
moodle-branch: 'MOODLE_400_STABLE'
database: 'mariadb'

steps:
- name: Check out repository code
Expand Down
5 changes: 3 additions & 2 deletions classes/automation/instances.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ public function find_user_completion_conditions($conditions, $instancedata, $use
if ($status <= 0 ) {
continue;
}

$enabled++; // Increase enabled condition count.

// Condition is only configured to verify the future enrolment.
if ($status == condition_base::FUTURE && !$isnewuser) {
$userenroltime = $this->get_user_enrolment_createtime($userid, $instancedata->course);
Expand All @@ -435,8 +438,6 @@ public function find_user_completion_conditions($conditions, $instancedata, $use
}
}

$enabled++; // Increase enabled condition count.

if ($condition->is_user_completed($instancedata, $userid, $completion)) {

$result++; // Increase completed condition count for this user.
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();

$plugin->component = 'mod_pulse';
$plugin->version = 2023100706;
$plugin->version = 2023100707;
$plugin->requires = 2022112800; // Requires Moodle 4.1
$plugin->release = 'v2.0';
$plugin->maturity = MATURITY_STABLE;
Expand Down

0 comments on commit 5981b85

Please sign in to comment.