From 8cdd8c4df85a0182868d02232425620eb10cd8b5 Mon Sep 17 00:00:00 2001 From: Ere Maijala Date: Mon, 16 Oct 2023 13:47:10 +0300 Subject: [PATCH 1/3] Fix checkHighHolds for compatibility with Koha Bug 29562. --- Koha/Plugin/Fi/KohaSuomi/DI/Koha/Availability/Checks/Item.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Koha/Plugin/Fi/KohaSuomi/DI/Koha/Availability/Checks/Item.pm b/Koha/Plugin/Fi/KohaSuomi/DI/Koha/Availability/Checks/Item.pm index 2146b69..7af8249 100644 --- a/Koha/Plugin/Fi/KohaSuomi/DI/Koha/Availability/Checks/Item.pm +++ b/Koha/Plugin/Fi/KohaSuomi/DI/Koha/Availability/Checks/Item.pm @@ -250,10 +250,7 @@ sub high_hold { return unless C4::Context->preference('decreaseLoanHighHolds'); my $item = $self->item; - my $check = C4::Circulation::checkHighHolds( - $item->unblessed, - $patron->unblessed - ); + my $check = C4::Circulation::checkHighHolds($item, $patron); if ($check->{exceeded}) { return Koha::Plugin::Fi::KohaSuomi::DI::Koha::Exceptions::Item::HighHolds->new( From 5fe85c635146e1d05f41796513d2f37408bc26a5 Mon Sep 17 00:00:00 2001 From: Ere Maijala Date: Mon, 16 Oct 2023 13:56:14 +0300 Subject: [PATCH 2/3] Add maximum version that the 23.05 branch supports. --- Koha/Plugin/Fi/KohaSuomi/DI.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Plugin/Fi/KohaSuomi/DI.pm b/Koha/Plugin/Fi/KohaSuomi/DI.pm index 6ff9174..7b64cd8 100644 --- a/Koha/Plugin/Fi/KohaSuomi/DI.pm +++ b/Koha/Plugin/Fi/KohaSuomi/DI.pm @@ -27,7 +27,7 @@ our $metadata = { date_authored => '2020-06-03', date_updated => '1900-01-01', minimum_version => '22.12.00.036', - maximum_version => undef, + maximum_version => '23.06.00.021', version => $VERSION, description => 'This plugin implements API endpoints required' . ' for the integration of advanced discovery interfaces' From 5618e0d9b097233af163737acb776fbc67bcd42c Mon Sep 17 00:00:00 2001 From: Ere Maijala Date: Fri, 27 Oct 2023 13:31:09 +0300 Subject: [PATCH 3/3] Update change log. --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8426b5..b4d0429 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [23.05.07] - 2023-10-27 + +### Fixed + +- Fixed compatibility with Koha bug 29562. This caused an error if the decreaseLoanHighHolds syspref was enabled. + ## [23.05.06] - 2023-10-10 ### Changed