Fix can change type from url to other string
This commit is contained in:
parent
fcca3d6be1
commit
3346fb1c75
@ -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')
|
||||
{
|
||||
|
||||
@ -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')
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user