Fix: remove accent

This commit is contained in:
Regis Houssin 2010-11-10 09:54:14 +00:00
parent 2958a83369
commit 6cbae5ad30
2 changed files with 3 additions and 2 deletions

View File

@ -183,7 +183,8 @@ class ActionsContactCardCommon
{
if ($_GET["action"] == 'create_user')
{
$login=strtolower(substr($this->object->prenom, 0, 4)) . strtolower(substr($this->object->nom, 0, 4));
$login=strtolower(substr(dol_string_unaccent($this->object->prenom), 0, 4)) . strtolower(substr(dol_string_unaccent($this->object->nom), 0, 4));
//$login=dol_string_unaccent($login);
// Create a form array
$formquestion=array(array('label' => $langs->trans("LoginToCreate"), 'type' => 'text', 'name' => 'login', 'value' => $login));

View File

@ -706,7 +706,7 @@ else
if ($_GET["action"] == 'create_user')
{
$login=strtolower(substr($object->prenom, 0, 4)) . strtolower(substr($object->nom, 0, 4));
$login=strtolower(substr(dol_string_unaccent($object->prenom), 0, 4)) . strtolower(substr(dol_string_unaccent($object->nom), 0, 4));
// Create a form array
$formquestion=array(array('label' => $langs->trans("LoginToCreate"), 'type' => 'text', 'name' => 'login', 'value' => $login));