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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
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.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/