Skip to content

Commit

Permalink
Fix biblio holdability check when item-level hold exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Oct 10, 2023
1 parent 0d17f60 commit 6e6c4d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.05] - 2023-10-10

### Fixed

- Fixed an error that occurred when checking for biblio holdability when the patron already had an item level hold for the biblio.

## [23.05.04] - 2023-09-19

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ sub _item_looper {
# First check for existing item level holds which would prevent a biblio level hold
foreach my $hold (@holds) {
if ($hold->item_level_hold) {
$self->unavailable(Koha::Plugin::Fi::KohaSuomi::DI::Koha::Exceptions::Biblio::OnlyItemLevelHoldAllowed->new);
$self->unavailable(Koha::Plugin::Fi::KohaSuomi::DI::Koha::Exceptions::Hold::OnlyItemLevelHoldAllowed->new);
}
}

Expand Down

0 comments on commit 6e6c4d0

Please sign in to comment.