Skip to content

Commit f14fc2b

Browse files
committed
replace get_suffix()
1 parent 0dc8906 commit f14fc2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mod_form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public function data_postprocessing($data) {
401401
parent::data_postprocessing($data);
402402
// Turn off completion settings if the checkboxes aren't ticked.
403403
if (!empty($data->completionunlocked)) {
404-
$completion = $data->{'completion' . $this->get_suffix()};
404+
$completion = $data->{'completion_ratingallocate'};
405405
$autocompletion = !empty($completion) && $completion == COMPLETION_TRACKING_AUTOMATIC;
406406
if (empty($data->{$this->get_suffixed_name('vote')}) || !$autocompletion) {
407407
$data->{$this->get_suffixed_name('vote')} = 0;

0 commit comments

Comments
 (0)