]> git.koha-community.org Git - koha.git/commit
Bug 23012: get_lostreturn_policy returns a scalar
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 24 Oct 2022 21:36:46 +0000 (18:36 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 24 Oct 2022 21:42:53 +0000 (18:42 -0300)
commitc2fee12cd0f652b16929eb503793e3594e778a23
treef5ed340914db6b6148611a044f466790b4a1db3a
parentca37a33e05b6cff96c436392831d2a1c523546e6
Bug 23012: get_lostreturn_policy returns a scalar

On commit 4d994773f83468b561896939f16131d0332d9cfc
Koha::Item->_set_found_trigger gets the call to get_lostreturn_policy()
changed so it expects a hashref instead of the scalar it returns. This
patch adjusts it back.

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Item.t
=> FAIL: Tests fail!
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests pass!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Item.pm