2
0
forked from Wavyzz/dolibarr

Update actions_addupdatedelete.inc.php

This commit is contained in:
BENKE Charlene
2020-02-28 15:47:26 +01:00
committed by GitHub
parent 477cce718b
commit 50b3c760dd

View File

@@ -130,8 +130,8 @@ if ($action == 'update' && !empty($permissiontoadd))
} }
elseif ($object->fields[$key]['type'] == 'boolean') { elseif ($object->fields[$key]['type'] == 'boolean') {
if (!GETPOSTISSET($key)) { if (!GETPOSTISSET($key)) {
$object->$key = null; $object->$key = 0; // use 0 instead null if the field is defined as not null
continue; // The field was not submited to be edited continue;
} }
} }