[Bug 43929] New: Restoring deleted items fails when the biblioitemnumber does not match the biblionumber
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43929 Bug ID: 43929 Summary: Restoring deleted items fails when the biblioitemnumber does not match the biblionumber Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Cataloging Assignee: koha-bugs@lists.koha-community.org Reporter: lucas@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl Target Milestone: --- To recreate: 1. Find or create a biblio with some items on it. Not the biblionumber. In KTD I am using: -biblionumber = 233 w/ 3 items on it. Itemnumber: (515, 516, 517 ) 2. Create a mismatch with biblioitemnumber ( in KTD biblioitemnumber 10000 shouldn't exist ): -UPDATE biblioitems SET biblioitemnumber = 10000 WHERE biblionumber = 233; 3. In the UI delete all the items on the biblio and then delete the biblio itself 4. Go to Cataloging > Restore deleted records 5. Restore the biblio. Its succeeds but the restoration of the items fails/ In the logs: 5 [2026/10/28 16:34:14] [WARN] Broken FK constraint at /kohadevbox/koha/Koha/Object.pm line 176. 6 [2026/10/28 16:34:14] [ERROR] PUT /api/v1/deleted/items/515: unhandled exception (Koha::Exceptions::Object::FKConstraint)<<Broken FK constraint>> -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43929 Enica Davis <enica@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |enica@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43929 snewell@hmcpl.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |snewell@hmcpl.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43929 hebah@bywatersolutions.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hebah@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org