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:
parent
327cb59546
commit
fd9be777fb
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue