Fix can change type from url to other string

This commit is contained in:
Laurent Destailleur 2016-11-08 17:30:48 +01:00
parent fcca3d6be1
commit 3346fb1c75
2 changed files with 3 additions and 2 deletions

View File

@ -1243,7 +1243,7 @@ class ExtraFields
}
elseif ($type == 'mail')
{
$value=dol_print_email($value);
$value=dol_print_email($value,0,0,0,64,1,1);
}
elseif ($type == 'url')
{
@ -1251,7 +1251,7 @@ class ExtraFields
}
elseif ($type == 'phone')
{
$value=dol_print_phone($value);
$value=dol_print_phone($value, '', 0, 0, '', ' ', 1);
}
elseif ($type == 'price')
{

View File

@ -131,6 +131,7 @@ elseif (($type== 'sellist') || ($type == 'chkbxlst') || ($type == 'link') )
$typewecanchangeinto=array(
'varchar'=>array('varchar', 'phone', 'mail', 'url', 'select'),
'mail'=>array('varchar', 'phone', 'mail', 'url', 'select'),
'url'=>array('varchar', 'phone', 'mail', 'url', 'select'),
'phone'=>array('varchar', 'phone', 'mail', 'url', 'select'),
'select'=>array('varchar', 'phone', 'mail', 'url', 'select')
);