--- Comment #4 from Julian Maurice <> ---
/home/vagrant/kohaclone/Koha/ line 124 is in "store" subroutine, so it
is "store" that explodes, not "new", which is why I ask: why not override
"store" to set default values (like it is done in others "Koha::Object"s) ?

$ perl -MKoha::Biblio -E 'Koha::Biblio->new'
# No errors

$ perl -MKoha::Biblio -E 'Koha::Biblio->new->store'
DBD::mysql::st execute failed: Field 'datecreated' doesn't have a default value
[for Statement "INSERT INTO `biblio` () VALUES ()"] at
/usr/share/perl5/DBIx/Class/Storage/ line 1836.
DBIx::Class::Storage::DBI::_dbh_execute(): Field 'datecreated' doesn't have a
default value at /home/koha/koha/Koha/ line 124

You are receiving this mail because:
You are watching all bug changes.
Koha-bugs mailing list
website :
git :
bugs :

Reply via email to