diff --git a/htdocs/core/tpl/commonfields_add.tpl.php b/htdocs/core/tpl/commonfields_add.tpl.php index 3837ad42a4c8b..5ab7e7aa799fa 100644 --- a/htdocs/core/tpl/commonfields_add.tpl.php +++ b/htdocs/core/tpl/commonfields_add.tpl.php @@ -80,7 +80,7 @@ print img_picto('', $val['picto'], '', 0, 0, 0, '', 'pictofixedwidth'); } if (in_array($val['type'], array('int', 'integer'))) { - $value = GETPOSTINT($key); + $value = GETPOST($key); // We must not use GETPOSTINT in creation form because value can still be "" } elseif ($val['type'] == 'double') { $value = price2num(GETPOST($key, 'alphanohtml')); } elseif (preg_match('/^text/', $val['type'])) {