Skip to content

Commit

Permalink
Fixed completion status placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
prasanna-lmsace committed Sep 30, 2023
1 parent b16ed57 commit dff7931
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion automation/instances/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
$PAGE->set_heading(format_string($course->fullname));

$PAGE->navbar->add(get_string('mycourses', 'core'), new moodle_url('/course/index.php'));
$PAGE->navbar->add(format_string($course->shortname), new moodle_url('/admin/category.php', array('category' => 'mod_pulse')));
$PAGE->navbar->add(format_string($course->shortname), new moodle_url('/course/view.php', ['id' => $course->id]));
$PAGE->navbar->add(get_string('autotemplates', 'pulse'), new moodle_url('/mod/pulse/automation/instances/list.php'));

// Build automation templates table.
Expand Down
2 changes: 1 addition & 1 deletion lib/vars.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public function reaction() {
public function completionstatus() {
global $DB;

$completion = new \completion_info($this->course->id);
$completion = new \completion_info($this->course);
$coursecontext = $this->coursecontext ?? \context_course::instance($this->course->id);

if ($completion->is_course_complete($this->user->id)) {
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 = 2023051838;
$plugin->version = 2023051839;
$plugin->requires = 2020061500; // Requires Moodle 3.90.
$plugin->release = 'v2.0';
$plugin->maturity = MATURITY_STABLE;
Expand Down

0 comments on commit dff7931

Please sign in to comment.