NEW Support IP type in extrafields
This commit is contained in:
parent
c3389489ad
commit
81865ec55b
@ -191,17 +191,17 @@ if ((($type == 'select') || ($type == 'checkbox') || ($type == 'radio')) && is_a
|
|||||||
<?php
|
<?php
|
||||||
// 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', 'ip', 'select', 'password', 'text', 'html'),
|
||||||
'double'=>array('double', 'price'),
|
'double'=>array('double', 'price'),
|
||||||
'price'=>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'),
|
||||||
'mail'=>array('ip', 'varchar', 'phone', 'mail', 'url', 'select'),
|
'mail'=>array('varchar', 'phone', 'mail', 'url', 'ip', 'select'),
|
||||||
'url'=>array('ip', 'varchar', 'phone', 'mail', 'url', 'select'),
|
'url'=>array('varchar', 'phone', 'mail', 'url', 'ip', 'select'),
|
||||||
'phone'=>array('ip', 'varchar', 'phone', 'mail', 'url', 'select'),
|
'phone'=>array('varchar', 'phone', 'mail', 'url', 'ip', 'select'),
|
||||||
'ip'=>array('ip', 'varchar', 'phone', 'mail', 'url', 'select'),
|
'ip'=>array('varchar', 'phone', 'mail', 'url', 'ip', 'select'),
|
||||||
'select'=>array('varchar', 'phone', 'mail', 'url', 'select'),
|
'select'=>array('varchar', 'phone', 'mail', 'url', 'ip', 'select'),
|
||||||
'date'=>array('date', 'datetime')
|
'date'=>array('date', 'datetime')
|
||||||
);
|
);
|
||||||
/* Disabled because text is text on several lines, when varchar is text on 1 line, we should not be able to convert
|
/* Disabled because text is text on several lines, when varchar is text on 1 line, we should not be able to convert
|
||||||
|
|||||||
@ -441,6 +441,7 @@ ExtrafieldPhone = Phone
|
|||||||
ExtrafieldPrice = Price
|
ExtrafieldPrice = Price
|
||||||
ExtrafieldMail = Email
|
ExtrafieldMail = Email
|
||||||
ExtrafieldUrl = Url
|
ExtrafieldUrl = Url
|
||||||
|
ExtrafieldIP = IP
|
||||||
ExtrafieldSelect = Select list
|
ExtrafieldSelect = Select list
|
||||||
ExtrafieldSelectList = Select from table
|
ExtrafieldSelectList = Select from table
|
||||||
ExtrafieldSeparator=Separator (not a field)
|
ExtrafieldSeparator=Separator (not a field)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user