https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43746

            Bug ID: 43746
           Summary: Cannot load or restore deletedbiblios that have do not
                    have a corresponding entry in deletedbiblioitems
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Cataloging
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]
  Target Milestone: ---

To recreate:

1. Delete at least one record 
2. Run delete from deletedbiblioitems;
3. Go to  Cataloging -> Restore deleted records 
4. It explodes like:

[ERROR] GET /api/v1/deleted/biblios: unhandled exception
(Mojo::Exception)<<Can't call method "to_api" on an undefined value at
/usr/share/koha/lib/Koha/Old/Biblio.pm line 130.>>


We should fix to_api so the table can load. We should also throw an exception
when trying to restore records like this. However, I don't think we should
actually try to restore deletedbiblios with a missing deletedbiblioitems.

-- 
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/

Reply via email to