diff --git a/mod/assign/lang/en/assign.php b/mod/assign/lang/en/assign.php index 7c9256b2402..4fd82a9885c 100644 --- a/mod/assign/lang/en/assign.php +++ b/mod/assign/lang/en/assign.php @@ -572,9 +572,9 @@ $string['submissionslockedshort'] = 'Submission changes not allowed'; $string['submissionsclosed'] = 'Submissions closed'; $string['submissionsettings'] = 'Submission settings'; $string['submissionstatement'] = 'Submission statement'; -$string['submissionstatement_help'] = 'Assignment submission confirmation statement'; $string['submissionstatementdefault'] = 'This submission is my own work, except where I have acknowledged the use of the works of other people.'; $string['submissionstatement_help'] = 'Statement that each student must accept in order to submit their work.'; +$string['submissionstatementrequired'] = 'You are required to agree to this statement before you can submit.'; $string['submissionstatementteamsubmission'] = 'Group submission statement'; $string['submissionstatementteamsubmissiondefault'] = 'This submission is the work of my group, except where we have acknowledged the use of the works of other people.'; $string['submissionstatementteamsubmission_help'] = 'Statement that each student must accept in order to submit the work of their group.'; diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index 7ea56ef0341..ef15d3f10e7 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -8135,7 +8135,8 @@ class assign { // Only show submission statement if we are editing our own submission. if ($requiresubmissionstatement && !$draftsenabled && $userid == $USER->id) { $mform->addElement('checkbox', 'submissionstatement', '', $submissionstatement); - $mform->addRule('submissionstatement', get_string('required'), 'required', null, 'client'); + $mform->addRule('submissionstatement', get_string('submissionstatementrequired', 'mod_assign'), + 'required', null, 'client'); } $this->add_plugin_submission_elements($submission, $mform, $data, $userid); diff --git a/mod/assign/submissionconfirmform.php b/mod/assign/submissionconfirmform.php index 1508026a850..b8c440c1b34 100644 --- a/mod/assign/submissionconfirmform.php +++ b/mod/assign/submissionconfirmform.php @@ -48,7 +48,8 @@ class mod_assign_confirm_submission_form extends moodleform { if ($requiresubmissionstatement) { $mform->addElement('checkbox', 'submissionstatement', '', $submissionstatement); - $mform->addRule('submissionstatement', get_string('required'), 'required', null, 'client'); + $mform->addRule('submissionstatement', get_string('submissionstatementrequired', 'mod_assign'), + 'required', null, 'client'); } $mform->addElement('static', 'confirmmessage', '', get_string('confirmsubmission', 'mod_assign')); diff --git a/mod/assign/tests/behat/group_submission.feature b/mod/assign/tests/behat/group_submission.feature index 92483c3570a..2376fc0defc 100644 --- a/mod/assign/tests/behat/group_submission.feature +++ b/mod/assign/tests/behat/group_submission.feature @@ -58,7 +58,7 @@ Feature: Group assignment submissions And I should see "This submission is the work of my group, except where we have acknowledged the use of the works of other people." And I press "Continue" And I should see "Confirm submission" - And I should see "- Required" + And I should see "You are required to agree to this statement before you can submit." And I set the field "submissionstatement" to "1" And I press "Continue" And I should see "Submitted for grading" in the "Submission status" "table_row" diff --git a/mod/assign/tests/behat/submission_statement.feature b/mod/assign/tests/behat/submission_statement.feature index ddce1a10c2f..2f4e0069518 100644 --- a/mod/assign/tests/behat/submission_statement.feature +++ b/mod/assign/tests/behat/submission_statement.feature @@ -34,7 +34,7 @@ Feature: In an assignment, teacher can require submission statements Then I should see "This submission is my own work, except where I have acknowledged the use of the works of other people." And I press "Continue" And I should see "Confirm submission" - And I should see "- Required" + And I should see "You are required to agree to this statement before you can submit." And I set the field "submissionstatement" to "1" And I press "Continue" And I should see "Submitted for grading" in the "Submission status" "table_row"