Skip to content

Commit

Permalink
replace get_suffix()
Browse files Browse the repository at this point in the history
  • Loading branch information
irinahpe committed Jul 30, 2024
1 parent 0dc8906 commit f14fc2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public function data_postprocessing($data) {
parent::data_postprocessing($data);
// Turn off completion settings if the checkboxes aren't ticked.
if (!empty($data->completionunlocked)) {
$completion = $data->{'completion' . $this->get_suffix()};
$completion = $data->{'completion_ratingallocate'};
$autocompletion = !empty($completion) && $completion == COMPLETION_TRACKING_AUTOMATIC;
if (empty($data->{$this->get_suffixed_name('vote')}) || !$autocompletion) {
$data->{$this->get_suffixed_name('vote')} = 0;
Expand Down

0 comments on commit f14fc2b

Please sign in to comment.