Merge pull request #14003 from annando/issue-14001

Issue 14001: Fix "Incorrect integer value"
This commit is contained in:
Hypolite Petovan 2024-03-16 08:14:45 +00:00 committed by GitHub
commit 4bbc1d84ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -140,7 +140,7 @@ class Probe
} else {
$newdata[$field] = trim($data[$field]);
}
} elseif (!in_array($field, $numeric_fields)) {
} elseif (!in_array($field, $numeric_fields) && !in_array($field, $boolean_fields)) {
$newdata[$field] = '';
} else {
$newdata[$field] = null;