Umlauts in names

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Locked
trajahan
Posts: 6
Joined: Wed Jul 04, 2007 6:17 am
Location: Finland

Umlauts in names

Post by trajahan »

Apparently Timetrex checks entered names and prevents using some special characters in names. Problem is, we have plenty of umlauts in our names in Finland and people would like have their names entered correctly. This probably isn't a big problem to fix.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Try replacing line 41 of classes/modules/users/UserFactory.class.php

from:

Code: Select all

protected $name_validator_regex = '/^[a-zA-Z -\.\']{1,250}$/i';
to:

Code: Select all

protected $name_validator_regex = '/^[a-zA-Z -\.\'|\x7F-\xFF]{1,250}$/iu';
trajahan
Posts: 6
Joined: Wed Jul 04, 2007 6:17 am
Location: Finland

Post by trajahan »

Thanks!

That did the trick!
Locked