[Koha-bugs] [Bug 19686] objects.search helper needs a to_model param
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Dec 1 22:50:39 CET 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19686
--- Comment #5 from David Bourgault <david.bourgault at inlibro.com> ---
So this fails for me.
I get failed test messages that look like this:
# Failed test 'exact match for JSON Pointer "/0/firstname"'
# at t/db_dependent/Koha/REST/Plugin/Objects.t line 168.
# got: 'Emmanuel'
# expected: 'Manuel'
But I also get this error at the beginning of the prove command:
t/db_dependent/Koha/REST/Plugin/Objects.t .. DBD::mysql::st execute failed:
Cannot delete or update a parent row: a foreign key constraint fails
(`koha_master_dev_inlibro`.`issues`, CONSTRAINT `issues_ibfk_1` FOREIGN KEY
(`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON UPDATE CASCADE)
[for Statement "DELETE FROM `borrowers`"] at
/usr/local/share/perl/5.22.1/DBIx/Class/Storage/DBI.pm line 1836.
No method delete found for Koha::Patrons
DBIx::Class::Storage::DBI::_dbh_execute(): Cannot delete or update a parent
row: a foreign key constraint fails (`koha_master_dev_inlibro`.`issues`,
CONSTRAINT `issues_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES
`borrowers` (`borrowernumber`) ON UPDATE CASCADE) at
/inlibro/git/koha-master-dev-inlibro/Koha/Objects.pm line 388
at t/db_dependent/Koha/REST/Plugin/Objects.t line 76.
Is this a patch error or could it be a DB error?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list