MDL-77398 mod_assign: disable form submit protection for batch options.

This commit is contained in:
Paul Holden
2023-04-24 10:35:07 +01:00
parent 4e632b7251
commit 426b5aeccb
+9 -2
View File
@@ -4542,7 +4542,10 @@ class assign {
'context'=>$this->get_context(),
'markingworkflow'=>$markingworkflow,
'markingallocation'=>$markingallocation);
$classoptions = array('class'=>'gradingbatchoperationsform');
$classoptions = [
'class' => 'gradingbatchoperationsform',
'data-double-submit-protection' => 'off',
];
$gradingbatchoperationsform = new mod_assign_grading_batch_operations_form(null,
$batchformparams,
@@ -5020,7 +5023,11 @@ class assign {
'context'=>$this->get_context(),
'markingworkflow'=>$this->get_instance()->markingworkflow,
'markingallocation'=>$markingallocation);
$formclasses = array('class'=>'gradingbatchoperationsform');
$formclasses = [
'class' => 'gradingbatchoperationsform',
'data-double-submit-protection' => 'off'
];
$mform = new mod_assign_grading_batch_operations_form(null,
$batchformparams,
'post',