Skip to content

Commit

Permalink
Merge pull request #12 from lushonline/11-bug-incorrect-property-on-i…
Browse files Browse the repository at this point in the history
…mportrecord

11 bug incorrect property on importrecord
  • Loading branch information
lushonline authored Sep 9, 2022
2 parents aeaa107 + 0719220 commit d92a62f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/importrecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private function get_default_moduleimport(): \stdClass {
$module->introformat = 1; // FORMAT_HTML.
$module->content = null;
$module->contentformat = 1; // FORMAT_HTML.
$module->markcompleteexternally = 0;
$module->completionexternally = 0;
$module->completion = 2;
$module->completionview = 1;

Expand Down
2 changes: 1 addition & 1 deletion tests/importrecord_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function test_get_moduleimport(): void {
$this->assertNull($moduleimport->content);

// Check the default values are equal.
$this->assertEquals($moduleimport->markcompleteexternally, 0);
$this->assertEquals($moduleimport->completionexternally, 0);
$this->assertEquals($moduleimport->introformat, 1);
$this->assertEquals($moduleimport->contentformat, 1);
$this->assertEquals($moduleimport->completion, 2);
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

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

$plugin->version = 2022090500;
$plugin->version = 2022090501;
$plugin->requires = 2021051700; // Requires this Moodle version v3.11 see https://docs.moodle.org/dev/Releases.
$plugin->component = 'mod_externalcontent';
$plugin->maturity = MATURITY_STABLE;
Expand Down

0 comments on commit d92a62f

Please sign in to comment.