Bug 41510: (RM follow-up) Perltidy a missed file at merge time

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
(cherry picked from commit 7fd796d8f8)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
This commit is contained in:
Martin Renvoize 2026-03-20 15:35:10 +00:00 committed by Wainui Witika-Park
parent 327cb59546
commit fd9be777fb
No known key found for this signature in database
GPG Key ID: 2D0A6AB5DAF1B78D
2 changed files with 8 additions and 6 deletions

View File

@ -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;
}

View File

@ -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,