FIX Can switch from double to price type for extrafields
This commit is contained in:
parent
72c8397e36
commit
7a73915e92
@ -194,6 +194,8 @@ elseif (($type == 'sellist') || ($type == 'chkbxlst') || ($type == 'link') || ($
|
|||||||
// Define list of possible type transition
|
// Define list of possible type transition
|
||||||
$typewecanchangeinto = array(
|
$typewecanchangeinto = array(
|
||||||
'varchar'=>array('varchar', 'phone', 'mail', 'url', 'select', 'password', 'text', 'html'),
|
'varchar'=>array('varchar', 'phone', 'mail', 'url', 'select', 'password', 'text', 'html'),
|
||||||
|
'double'=>array('double', 'price'),
|
||||||
|
'price'=>array('double', 'price'),
|
||||||
'text'=>array('text', 'html'),
|
'text'=>array('text', 'html'),
|
||||||
'html'=>array('text', 'html'),
|
'html'=>array('text', 'html'),
|
||||||
'password'=>array('password', 'varchar'),
|
'password'=>array('password', 'varchar'),
|
||||||
@ -202,6 +204,7 @@ $typewecanchangeinto = array(
|
|||||||
'phone'=>array('varchar', 'phone', 'mail', 'url', 'select'),
|
'phone'=>array('varchar', 'phone', 'mail', 'url', 'select'),
|
||||||
'select'=>array('varchar', 'phone', 'mail', 'url', 'select')
|
'select'=>array('varchar', 'phone', 'mail', 'url', 'select')
|
||||||
);
|
);
|
||||||
|
|
||||||
if (in_array($type, array_keys($typewecanchangeinto)))
|
if (in_array($type, array_keys($typewecanchangeinto)))
|
||||||
{
|
{
|
||||||
$newarray = array();
|
$newarray = array();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user