-
-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Steps to reproduce the issue
Add decimal field to table and save content in own component with empty field.
Expected result
Content would be successfully saved
Actual result
Appears error "Incorrect decimal value"
System information (as much as possible)
I try it on Joomla 5.3, 5.4 and 6.0.
Additional comments
It's caused by missing next contidion in function insertObject in Mysql and Mysqli database drivers:
if (stristr($tableColumns[$k], 'decimal') !== false && $v === '') {
continue;
}
If I add this under condition:
if (stristr($tableColumns[$k], 'int') !== false && $v === '') {
continue;
}
then saving content on my component works as expected
Metadata
Metadata
Assignees
Labels
No labels