Bug 24213: Fix Koha::Object->get_from_storage if the object has been deleted
commit82c8542cb6493c9d2ddc9a1f26c54d6aac675317
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 11 Dec 2019 08:39:30 +0000 (11 09:39 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 31 Jan 2020 13:55:13 +0000 (31 13:55 +0000)
tree542ab8d1b7e182d3eeb3f76adab3d881228ed6f1
parent0bf254e4071ceb7c78e0387c184ae55b288695ef
Bug 24213: Fix Koha::Object->get_from_storage if the object has been deleted

Without this patch it fails with something like:
  DBIC result _type  isn't of the _type Subscription at t/db_dependent/Biblio.t line 627.

Test plan:
- Apply the first patch (Add tests)
- Confirm that they fail
- Apply this patch
- Confirm that the tests pass

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Object.pm