Skip to content

Commit 2ebf5ff

Browse files
dlmsrHoang, Minh Duc
andcommitted
Fix missing suffix for completion form elements
The module name needs to be appended to the custom completion form elements. Co-authored-by: Hoang, Minh Duc <[email protected]>
1 parent 1961fab commit 2ebf5ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mod_form.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,7 @@ public function add_completion_rules() {
376376
* @return string
377377
*/
378378
protected function get_suffixed_name(string $fieldname): string {
379-
// Counterintuitively don't use function get_suffix(), since data isn't saved correctly in DB otherwise.
380-
return 'completion' . $fieldname;
379+
return "completion{$fieldname}_{$this->get_suffix()}";
381380
}
382381

383382
/**

0 commit comments

Comments
 (0)