diff --git a/mod_form.php b/mod_form.php index c056629..56ae842 100644 --- a/mod_form.php +++ b/mod_form.php @@ -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; } }