https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19871 --- Comment #51 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 197448 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197448&action=edit Bug 19871: Move enum data truncation handling to centralized exception translation Complete the migration of enum data truncation exception handling from Koha::Object to the centralized ExceptionTranslator utility. This eliminates the last remaining manual DBIx::Class exception handling in Object code. Changes: - Add optional object parameter to ExceptionTranslator->translate_exception() - Update Schema wrapper methods to accept and pass object parameter - Enhance enum truncation handling to extract actual property values when object is available - Remove manual enum exception handling from Koha::Object::store() - Add comprehensive test coverage for enum handling with and without object context - Maintain contextual warning behavior for store() operations The centralized system now handles ALL DBIx::Class exception scenarios: - FK constraint failures (add/update and delete operations) - Duplicate key violations - Invalid data type values - Enum data truncation with actual property values This completes the centralization effort while providing better error reporting than the previous manual approach. Sponsored-by: OpenFifth <https://openfifth.co.uk> Signed-off-by: Jackie Usher <jackie.usher@westsussex.gov.uk> Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.