Fix size of key for extrafield of type select

This commit is contained in:
Laurent Destailleur
2018-10-22 19:05:04 +02:00
parent 33cd0e84d2
commit bf46a35a31

View File

@@ -239,8 +239,8 @@ class ExtraFields
$typedb='varchar';
$lengthdb='255';
} elseif (($type=='select') || ($type=='sellist') || ($type=='radio') ||($type=='checkbox') ||($type=='chkbxlst')){
$typedb='text';
$lengthdb='';
$typedb='varchar';
$lengthdb='255';
} elseif ($type=='link') {
$typedb='int';
$lengthdb='11';
@@ -542,8 +542,8 @@ class ExtraFields
$typedb='varchar';
$lengthdb='255';
} elseif (($type=='select') || ($type=='sellist') || ($type=='radio') || ($type=='checkbox') || ($type=='chkbxlst')) {
$typedb='text';
$lengthdb='';
$typedb='varchar';
$lengthdb='255';
} elseif ($type == 'html') {
$typedb='text';
} elseif ($type=='link') {