[Koha-bugs] [Bug 23463] Move C4::Items CRUD subroutines to Koha::Item
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Mar 20 16:14:31 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463
--- Comment #139 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 101273
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101273&action=edit
Bug 23463: Fix timestamp default value
This sounds wrong as we should let the DBMS do that, but it was failing.
Here we are doing the same as Koha::Patron->store for dateenrolled
To recreate the failure, prove t/db_dependent/Koha/Item.t without this
patch:
DBD::mysql::st execute failed: Column 'timestamp' cannot be null [for
Statement "UPDATE `items` SET `more_subfields_xml` = ?, `timestamp` = ?
WHERE ( `itemnumber` = ? )" with ParamValues: 0='<?xml version="1.0"
encoding="UTF-8"?>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list