[Koha-bugs] [Bug 21610] New: Koha::Object->store need to handle incorrect values
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 18 23:25:27 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21610
Bug ID: 21610
Summary: Koha::Object->store need to handle incorrect values
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
Severity: major
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: jonathan.druart at bugs.koha-community.org
Reporter: jonathan.druart at bugs.koha-community.org
QA Contact: testopia at bugs.koha-community.org
With strict SQL modes, we are facing several issues when objects are stored.
The following errors can be raised by DBIx::Class when an object does not have
a valid (as defined at DB level) value:
- Incorrect integer value: '' for column COLUMN
- Incorrect decimal value: '' for column COLUMN
- Column 'COLUMN' cannot be null
- Field 'COLUMN' doesn't have a default value
- Incorrect date value: '' for column 'COLUMN'
We already handled some of them for Koha::Patron. As we do not want to provide
such changes for all Koha::* modules we are going to fix this at
Koha::Object->store level in order to provide a global fix.
This is related to bug 21599 (for item types) and bug 21596 (for patrons)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list