]> git.koha-community.org Git - koha.git/commit
Bug 24213: Fix Koha::Object->get_from_storage if the object has been deleted
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 11 Dec 2019 08:39:30 +0000 (09:39 +0100)
committerHayley Mapley <hayleymapley@catalyst.net.nz>
Tue, 18 Feb 2020 02:54:14 +0000 (15:54 +1300)
commit5eb60264e3ddb3dbe9bbac1dd7a8cf6d2bd78cc4
treeee6c1d912e9eeded4d9bf73b2a5a0e1355e7d068
parente11243cf04bb48bd71e24c0cc4c73d0a728b837d
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>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit a27c5c9dcd5f5f8cbe9af7b9b5ae0f73ac81b2cb)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit f79f4dc5b1c78db56d43e097d5188aef49a75fe7)

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
Koha/Object.pm