From e571616d524c0ee66c8a66b7a0629f9a2960ebc8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 25 Jul 2017 00:21:01 +0200 Subject: [PATCH] Debug modulebuilder --- htdocs/modulebuilder/template/myobject_card.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/modulebuilder/template/myobject_card.php b/htdocs/modulebuilder/template/myobject_card.php index 9b3029c659d..b5de4c0226c 100644 --- a/htdocs/modulebuilder/template/myobject_card.php +++ b/htdocs/modulebuilder/template/myobject_card.php @@ -129,8 +129,8 @@ if (empty($reshook)) { foreach ($object->fields as $key => $val) { - if (in_array($key, array('entity', 'date_creation', 'tms', 'import_key'))) continue; // Ignore special fields - + if (in_array($key, array('rowid', 'entity', 'date_creation', 'tms', 'import_key'))) continue; // Ignore special fields + $object->$key=GETPOST($key,'alpha'); if ($val['notnull'] && $object->$key == '') { @@ -169,7 +169,7 @@ if (empty($reshook)) foreach ($object->fields as $key => $val) { $object->$key=GETPOST($key,'alpha'); - if (in_array($key, array('entity', 'datec', 'tms'))) continue; + if (in_array($key, array('rowid', 'entity', 'date_creation', 'tms', 'import_key'))) continue; if ($val['notnull'] && $object->$key == '') { $error++;