From 9710f07575ea7a56000058a687b1a9e835396b86 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 14 Jun 2016 10:49:41 +0100 Subject: [PATCH] Bug 12748: findSerialByStatus has been renamed with findSerialsByStatus MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit 30946eff3cda31d0cc97c6c1c4f1e757dbc4c366) Signed-off-by: Frédéric Demians --- C4/Serials.pm | 2 +- t/db_dependent/Serials.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Serials.pm b/C4/Serials.pm index 5272b1c690..faef41cbc8 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -2689,7 +2689,7 @@ sub _can_do_on_subscription { =head2 findSerialsByStatus - @serials = findSerialByStatus($status, $subscriptionid); + @serials = findSerialsByStatus($status, $subscriptionid); Returns an array of serials matching a given status and subscription id. diff --git a/t/db_dependent/Serials.t b/t/db_dependent/Serials.t index e848280525..b053681f9c 100755 --- a/t/db_dependent/Serials.t +++ b/t/db_dependent/Serials.t @@ -221,7 +221,7 @@ for my $status ( @statuses ) { } # Here we have 15 serials with statuses : 2*2 + 5*3 + 2*4 + 1*41 + 1*42 + 1*43 + 1*44 + 1*5 + 1*1 my @serialsByStatus = C4::Serials::findSerialsByStatus(2,$subscriptionid); -is(@serialsByStatus,2,"findSerialByStatus returns all serials with chosen status"); +is(@serialsByStatus,2,"findSerialsByStatus returns all serials with chosen status"); ( $total_issues, @serials ) = C4::Serials::GetSerials( $subscriptionid ); is( $total_issues, @statuses + 1, "GetSerials returns total_issues" ); my @arrived_missing = map { my $status = $_->{status}; ( grep { /^$status$/ } qw( 2 4 41 42 43 44 5 ) ) ? $_ : () } @serials; -- 2.39.5