@@ -, +, @@ title-string --- C4/Overdues.pm | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recalls.tt | 8 ++++---- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 8 ++++---- t/db_dependent/Koha/Biblio.t | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) --- a/C4/Overdues.pm +++ a/C4/Overdues.pm @@ -260,7 +260,7 @@ sub CalcFine { # check if item has been recalled. recall should have been marked Overdue by cronjob, so only look at overdue recalls # only charge using recall_overdue_fine if there is an item-level recall for this particular item, OR a biblio-level recall - my @recalls = Koha::Recalls->search({ biblionumber => $item->{biblionumber}, old => undef, status => 'O' }); + my @recalls = Koha::Recalls->search({ biblionumber => $item->{biblionumber}, old => undef, status => 'O' })->as_list; my $bib_level_recall = 0; $bib_level_recall = 1 if scalar @recalls > 0; foreach my $recall ( @recalls ) { --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recalls.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recalls.tt @@ -35,8 +35,8 @@ Title - Placed on - Expires on + Placed on + Expires on Pickup location Status Due date @@ -55,13 +55,13 @@ [% RECALL.biblio.author | html %] - + Recall date: [% RECALL.recalldate | $KohaDates %] - + [% IF ( RECALL.expirationdate ) %] Expiration: --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -756,8 +756,8 @@ Title - Placed on - Expires on + Placed on + Expires on Pickup location Status   @@ -769,13 +769,13 @@ [% INCLUDE 'biblio-title.inc' biblio=RECALL.biblio %] [% IF RECALL.item_level_recall %]

Item recalled: [% RECALL.item.barcode | html %]

[% END %] - + Recall date: [% RECALL.recalldate | $KohaDates %] - + [% IF ( RECALL.expirationdate ) %] Expiration: --- a/t/db_dependent/Koha/Biblio.t +++ a/t/db_dependent/Koha/Biblio.t @@ -928,13 +928,13 @@ subtest 'Recalls tests' => sub { item_level_recall => 1 })->store; - my $recalls_count = scalar $biblio->recalls; + my $recalls_count = $biblio->recalls->count; is( $recalls_count, 3, 'Correctly get number of active recalls for biblio' ); $recall1->set_cancelled; $recall2->set_expired({ interface => 'COMMANDLINE' }); - $recalls_count = scalar $biblio->recalls; + $recalls_count = $biblio->recalls->count; is( $recalls_count, 1, 'Correctly get number of active recalls for biblio' ); t::lib::Mocks::mock_preference('UseRecalls', 0); --