Skip to content

Commit

Permalink
fix for text ID for national characters #4804
Browse files Browse the repository at this point in the history
CLOSES #4804
  • Loading branch information
Jimmi08 authored Sep 26, 2023
1 parent 26f393b commit 7bc4d89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions e107_handlers/form_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4374,6 +4374,7 @@ protected function _format_id($id_value, $name, $value = null, $return_attribute
public function name2id($name)
{
$name = strtolower($name);
$name = e107::getParser()->toASCII($name);
return rtrim(str_replace(array('[]', '[', ']', '_', '/', ' ','.', '(', ')', '::', ':', '?','=',"'"), array('-', '-', '', '-', '-', '-', '-','','','-','','-','-',''), $name), '-');
}

Expand Down

0 comments on commit 7bc4d89

Please sign in to comment.