Skip to content

Commit e0159b3

Browse files
authored
Merge pull request #645 from turnitin/develop
Release v2022020301
2 parents 6bc4f85 + d4400e8 commit e0159b3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+159
-180
lines changed

CHANGELOG.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,36 @@
1-
### Date: 2021-Jun-08
2-
### Release: v2021060801
1+
### Date: 2022-Feb-03
2+
### Release: v2022020301
3+
4+
---
5+
6+
#### Setting an assignment to grade type ‘none’ will no longer create a Moodle gradebook column
7+
Creating an assignment with the grade type set to ‘none’ would create a column in the Moodle gradebook after the first submission to the assignment. We’ve fixed this bug, and the column will no longer be created.
8+
9+
#### Grades will update when a grade item can’t be found
10+
When the automatic scheduler (cron) runs to update grades, it could fail when it tried to update a grade item that couldn’t be found. We’ve improved how grades update, and this scenario will no longer prevent the rest of the grades from updating.
11+
12+
#### Submit on behalf of a student, even when ‘allow late submissions’ is not enabled
13+
The ‘allow late submissions’ setting should only prevent students from submitting to class. You, as the instructor, should always have control over the assignments you create. This change allows you to submit on behalf of a student without needing to open up late submissions for the entire class.
314

415
---
516

6-
####Support for Moodle 3.11
17+
### Date: 2021-Jun-08
18+
### Release: v2021060801
19+
20+
#### Support for Moodle 3.11
721
You can now confidently use this integration with Moodle 3.11.
822

9-
####Submit button is no longer visible after the due date
23+
#### Submit button is no longer visible after the due date
1024
The submit button will no longer be shown to students who have already submitted to the assignment when the due date has passed. The current functionality will remain for users who have not already submitted.
1125

12-
####Delete parts without errors
26+
#### Delete parts without errors
1327
The option to delete a part will now only show after there is more than one part used. When there is only one part, we’ll no longer show the deletion option to prevent the assignment from potentially breaking.
1428

29+
---
30+
1531
### Date: 2020-Nov-18
1632
### Release: v2020111801
1733

18-
---
19-
2034
#### :wrench: Fixes and enhancements
2135

2236
#### Rubrics sync back to the assignment

CONTRIBUTIONS.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ Please be aware that the **Develop** branch should not be considered production
55

66
To see what has changed in recent versions of Moodle Direct V2, see the [CHANGELOG](https://github.com/turnitin/moodle-mod_turnitintooltwo/blob/master/CHANGELOG.md).
77

8-
If you would like to contribute to the plugin please see our [CONTRIBUTIONS](https://github.com/turnitin/moodle-mod_turnitintooltwo/blob/master/CONTRIBUTIONS.md) page.
9-
108
If you are having issues, please consult our [TROUBLE SHOOTING](https://github.com/turnitin/moodle-mod_turnitintooltwo/blob/master/TROUBLESHOOTING.md) page.
119

1210
Installation
@@ -24,3 +22,10 @@ Testing
2422
-------
2523

2624
Please see the [testing instructions](./TESTING.md) for detail instructions on running the unit tests.
25+
26+
Contributions
27+
------------------------------
28+
29+
We welcome contributions to all elements of the plugin. Since launch we've had a number of users provide us with fixes and enhancements through either pull request or commits linked to from the issues page. If you are interested in contributing enhancements, or would like to solve an issue raised by another user, please feel free to make a pull request against the develop branch.
30+
31+
------------------------------

ajax.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@
302302
'submission_part' => $partid));
303303
$return["end"] = $start + TURNITINTOOLTWO_SUBMISSION_GET_LIMIT;
304304
$return["total"] = $_SESSION["num_submissions"][$partid];
305-
$return["nonsubmitters"] = $return["total"] - $totalsubmitters;
306305

307306
// Remove any leftover submissions from session and update grade timestamp.
308307
if ($return["end"] >= $return["total"]) {
@@ -479,13 +478,13 @@
479478
$turnitinclass = new turnitin_class($courseid);
480479
}
481480
$turnitinclass->read_class_from_tii();
482-
$sharedrubrics = $turnitinclass->sharedrubrics;
481+
$sharedrubrics = $turnitinclass->sharedrubrics;
483482

484-
foreach ($sharedrubrics as $group => $grouprubrics) {
485-
foreach ($grouprubrics as $rubricid => $rubricname) {
486-
$options[$group][$rubricid] = $rubricname;
487-
}
488-
}
483+
foreach ($sharedrubrics as $group => $grouprubrics) {
484+
foreach ($grouprubrics as $rubricid => $rubricname) {
485+
$options[$group][$rubricid] = $rubricname;
486+
}
487+
}
489488

490489
// Get assignment details.
491490
if (!empty($assignmentid)) {
@@ -927,7 +926,7 @@
927926

928927
$turnitintoolid = required_param('turnitintoolid', PARAM_INT);
929928

930-
// Check if v1 id is linked to a v2 id in the session
929+
// Check if v1 id is linked to a v2 id in the session.
931930
$turnitintooltwoid = 0;
932931
if ( isset( $_SESSION["migrationtool"][$turnitintoolid] ) && is_numeric( $_SESSION["migrationtool"][$turnitintoolid] ) ) {
933932
$turnitintooltwoid = intval( $_SESSION["migrationtool"][$turnitintoolid] );

backup/moodle2/restore_turnitintooltwo_stepslib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ protected function process_turnitintooltwo_submissions($data) {
155155
}
156156

157157
// Check if this hash already exists.
158-
if ($check_hash = $DB->get_record('turnitintooltwo_submissions', array('submission_hash' => $data->submission_hash))) {
158+
if ($DB->get_record('turnitintooltwo_submissions', array('submission_hash' => $data->submission_hash))) {
159159
$data->submission_hash = turnitintooltwo_genUuid();
160160
}
161161

classes/digitalreceipt/instructor_message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function build_instructor_message($input) {
3838
$message->submission_date = $input['submission_date'];
3939
$message->submission_id = $input['submission_id'];
4040

41-
return get_string('receipt_instructor_copy', 'turnitintooltwo', $message);
41+
return format_string(get_string('receipt_instructor_copy', 'turnitintooltwo', $message));
4242
}
4343

4444
/**

classes/digitalreceipt/receipt_message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ public function build_message($input) {
7070
$message->submission_date = $input['submission_date'];
7171
$message->submission_id = $input['submission_id'];
7272

73-
return get_string('digital_receipt_message', 'turnitintooltwo', $message);
73+
return format_string(get_string('digital_receipt_message', 'turnitintooltwo', $message));
7474
}
7575
}

classes/event/add_submission.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ protected function validate_data() {
6262
throw new \coding_exception('Context level must be CONTEXT_MODULE.');
6363
}
6464
}
65-
}
65+
}

classes/event/delete_submission.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ protected function validate_data() {
5858
throw new \coding_exception('Context level must be CONTEXT_MODULE.');
5959
}
6060
}
61-
}
61+
}

classes/event/list_submissions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ protected function validate_data() {
5858
throw new \coding_exception('Context level must be CONTEXT_MODULE.');
5959
}
6060
}
61-
}
61+
}

0 commit comments

Comments
 (0)