Skip to content

Commit

Permalink
Debug v21
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 1, 2025
1 parent 4d02eca commit 75227c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/tpl/commonfields_add.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down

0 comments on commit 75227c3

Please sign in to comment.