Fixed issue 203, user doesn't show in active/inactive if first name is ---.
This commit is contained in:
parent
358a774017
commit
d216e21858
@ -180,9 +180,12 @@ class IDF_Form_Admin_UserUpdate extends Pluf_Form
|
||||
{
|
||||
$first_name = trim($this->cleaned_data['first_name']);
|
||||
if ($first_name == mb_strtoupper($first_name)) {
|
||||
return mb_convert_case(mb_strtolower($first_name),
|
||||
$first_name = mb_convert_case(mb_strtolower($first_name),
|
||||
MB_CASE_TITLE, 'UTF-8');
|
||||
}
|
||||
if ($first_name == '---') {
|
||||
throw new Pluf_Form_Invalid(__('--- is not a valid first name.'));
|
||||
}
|
||||
return $first_name;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user