From fd9be777fba862d3d8bd753e7a603cc9547f3a44 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 20 Mar 2026 15:35:10 +0000 Subject: [PATCH] Bug 41510: (RM follow-up) Perltidy a missed file at merge time Signed-off-by: Martin Renvoize (cherry picked from commit 7fd796d8f8d89e810557c29c460df16701aa89ee) Signed-off-by: Jacob O'Mara Signed-off-by: Wainui Witika-Park --- Koha/Item.pm | 2 +- t/db_dependent/Koha/Item.t | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index 4d81919e12..ffae9c8c73 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -2067,7 +2067,7 @@ Returns the effective bookability of the current item, be that item or itemtype sub effective_bookable { my ($self) = @_; - return $self->bookable if defined $self->bookable; + return $self->bookable if defined $self->bookable; return $self->itemtype->bookable if $self->itemtype; return 0; } diff --git a/t/db_dependent/Koha/Item.t b/t/db_dependent/Koha/Item.t index 9d25cabefd..c5231c3ba8 100755 --- a/t/db_dependent/Koha/Item.t +++ b/t/db_dependent/Koha/Item.t @@ -3898,11 +3898,13 @@ subtest 'effective_bookable() tests' => sub { ); my $biblio_no_itype = $builder->build_sample_biblio; - $biblio_no_itype->biblioitem->set({ itemtype => undef })->store; - my $item_no_itype = $builder->build_sample_item({ - biblionumber => $biblio_no_itype->biblionumber, - itype => undef, - }); + $biblio_no_itype->biblioitem->set( { itemtype => undef } )->store; + my $item_no_itype = $builder->build_sample_item( + { + biblionumber => $biblio_no_itype->biblionumber, + itype => undef, + } + ); warning_like { is( $item_no_itype->effective_bookable, 0,