Null value for integer or float as default

In SugarCrm is a bug: you can’t save in database null value as default for integer or float types (if user leave empty field for integer or float type, to database is inserted always 0).

This bug is in the line about 517 in the file DBManager.php.

if(isset($data[$field])) {

I’ve changed this line as follows:

if(isset($data[$field]) && strlen($data[$field]) > 0) {

IF it is a bug, can You change it in the next version of SuiteCrm?

I’m very sorry, I’ve tested now SuiteCrm and it in this place run ok.