Update index.php

This commit is contained in:
Laurent Destailleur 2020-06-01 20:54:24 +02:00 committed by GitHub
parent a5ed630a57
commit 52d0c1a9ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -702,7 +702,7 @@ if ($dirins && $action == 'initobject' && $module && GETPOST('createtablearray',
$type = $obj->Type;
if ($type == 'int(11)') $type='integer';
if ($type == 'float') $type='real';
if (strchr($type, 'tinyint')) $type='boolean';
if (strstr($type, 'tinyint')) $type='integer';
if ($obj->Field == 'fk_soc') $type = 'integer:Societe:societe/class/societe.class.php';
if (preg_match('/^fk_proj/', $obj->Field)) $type = 'integer:Project:projet/class/project.class.php:1:fk_statut=1';
if (preg_match('/^fk_prod/', $obj->Field)) $type = 'integer:Product:product/class/product.class.php:1';