Skip to content

Commit

Permalink
Merge pull request #49 from odeialba/SV-47-2
Browse files Browse the repository at this point in the history
SV-47 Fix the completion suffix error
  • Loading branch information
odeialba authored Jan 18, 2024
2 parents c1be63b + dde3f29 commit 995b128
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ public function completion_rule_enabled($data) {
* @return string
*/
protected function get_suffixed_name(string $fieldname): string {
return $fieldname . $this->get_suffix();
if (method_exists($this, 'get_suffix')) {
return $fieldname . $this->get_suffix();
}

return $fieldname;
}
}

0 comments on commit 995b128

Please sign in to comment.