Skip to content

Commit

Permalink
Merge pull request #134 from turnitin/release_2022051301
Browse files Browse the repository at this point in the history
Release v2022051301
  • Loading branch information
dwinn authored May 13, 2022
2 parents e334dd2 + e36cdf0 commit 7b539cf
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
### Date: 2021-May-13
### Release: v2022051301

#### :zap: What's new

---

#### Support for Moodle 4.0

You can now confidently use Turnitin with Moodle 4.0.

#### :wrench: Fixes and enhancements

---

#### Submissions will no longer stick on ‘Pending’

When ‘Process draft submissions' was selected for an assignment, submissions would appear as stuck on the 'Pending’ status after a student made their final submission to the assignment.

This bug has been fixed, and the correct submission state will be shown.

---

### Date: 2021-June-01
### Release: v2021060101

Expand Down
4 changes: 2 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,8 @@ public function submission_handler($eventdata) {

$submissions = $DB->get_records_select(
'plagiarism_turnitinsim_sub',
'cm = ? AND userid = ? AND itemid = ? AND status != ?',
array($cm->id, $author, $itemid, TURNITINSIM_SUBMISSION_STATUS_EULA_NOT_ACCEPTED)
'cm = ? AND userid = ? AND itemid = ? AND status NOT IN (?, ?)',
array($cm->id, $author, $itemid, TURNITINSIM_SUBMISSION_STATUS_EULA_NOT_ACCEPTED, TURNITINSIM_SUBMISSION_STATUS_COMPLETE)
);

foreach ($submissions as $submission) {
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->version = 2021060101;
$plugin->version = 2022051301;
$plugin->release = "v1.2";
$plugin->requires = 2017051500;
$plugin->component = 'plagiarism_turnitinsim';
Expand Down

0 comments on commit 7b539cf

Please sign in to comment.