FIX Can switch from double to price type for extrafields
Conflicts: htdocs/core/tpl/admin_extrafields_edit.tpl.php
This commit is contained in:
parent
fe6fb12d18
commit
91523b4b64
@ -193,6 +193,8 @@ elseif (($type== 'sellist') || ($type == 'chkbxlst') || ($type == 'link') || ($t
|
|||||||
// 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'),
|
||||||
@ -201,6 +203,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