mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Fix size of key for extrafield of type select
This commit is contained in:
@@ -239,8 +239,8 @@ class ExtraFields
|
|||||||
$typedb='varchar';
|
$typedb='varchar';
|
||||||
$lengthdb='255';
|
$lengthdb='255';
|
||||||
} elseif (($type=='select') || ($type=='sellist') || ($type=='radio') ||($type=='checkbox') ||($type=='chkbxlst')){
|
} elseif (($type=='select') || ($type=='sellist') || ($type=='radio') ||($type=='checkbox') ||($type=='chkbxlst')){
|
||||||
$typedb='text';
|
$typedb='varchar';
|
||||||
$lengthdb='';
|
$lengthdb='255';
|
||||||
} elseif ($type=='link') {
|
} elseif ($type=='link') {
|
||||||
$typedb='int';
|
$typedb='int';
|
||||||
$lengthdb='11';
|
$lengthdb='11';
|
||||||
@@ -542,8 +542,8 @@ class ExtraFields
|
|||||||
$typedb='varchar';
|
$typedb='varchar';
|
||||||
$lengthdb='255';
|
$lengthdb='255';
|
||||||
} elseif (($type=='select') || ($type=='sellist') || ($type=='radio') || ($type=='checkbox') || ($type=='chkbxlst')) {
|
} elseif (($type=='select') || ($type=='sellist') || ($type=='radio') || ($type=='checkbox') || ($type=='chkbxlst')) {
|
||||||
$typedb='text';
|
$typedb='varchar';
|
||||||
$lengthdb='';
|
$lengthdb='255';
|
||||||
} elseif ($type == 'html') {
|
} elseif ($type == 'html') {
|
||||||
$typedb='text';
|
$typedb='text';
|
||||||
} elseif ($type=='link') {
|
} elseif ($type=='link') {
|
||||||
|
|||||||
Reference in New Issue
Block a user