From f2156852a78d19c248fb8f8a6e42abb9adc04b19 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 14 Jun 2016 10:39:08 +0100 Subject: [PATCH] Bug 12748: Remove warning 'masks earlier declaration in same scope' 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 273d5e53289536797281ca5eb323d5c373d9ea41) Signed-off-by: Frédéric Demians (cherry picked from commit 67b4f25a69b370bb441ed09555ef49e0dd2a1e10) Signed-off-by: Julian Maurice --- t/db_dependent/Serials.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Serials.t b/t/db_dependent/Serials.t index dac804f720..b7258be854 100755 --- a/t/db_dependent/Serials.t +++ b/t/db_dependent/Serials.t @@ -253,7 +253,7 @@ my ( $expected_serial ) = GetSerials2( $subscriptionid, [1] ); my $serialexpected = (C4::Serials::findSerialsByStatus(1,$subscriptionid))[0]; #delete serial with status Expected C4::Serials::ModSerialStatus( $serialexpected->{serialid},$serialexpected->{serialseq},$publisheddate,$publisheddate, $publisheddate,'1','an useless note'); -my @serialsByStatus = C4::Serials::findSerialsByStatus(1,$subscriptionid); +@serialsByStatus = C4::Serials::findSerialsByStatus(1,$subscriptionid); is (@serialsByStatus,1,"ModSerialStatus delete corectly serial expected and create another if not exist"); # add 1 serial with status=Expected 1 C4::Serials::ModSerialStatus( $expected_serial->{serialid}, 'NO.20', $publisheddate, $publisheddate, $publisheddate, '1', 'an useless note' ); -- 2.39.5