https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42418
--- Comment #31 from Tomás Cohen Arazi (tcohen) <[email protected]> --- (In reply to Kyle M Hall (khall) from comment #29) > # DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: > DBD::mysql::st execute failed: Cannot add or update a child row: a foreign > key constraint fails (`koha_kohadev`.`checkins`, CONSTRAINT > `checkins_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `borrowers` > (`borrowernumber`) ON DELETE SET NULL ON UPDATE CASCADE) at > /kohadevbox/koha/Koha/Object.pm line 174 That's because the mocked userenv (I reused) is pointing to a non-existent patron. I'll provide a fix, but the fallback to `borrowernumber=51` (the default) is a ticking bomb I'd say. Gonna file a separate (follow-up) bug report to make `mock_userenv` create a patron if not passed. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
