@@ -, +, @@ --- C4/Serials.pm | 2 +- t/db_dependent/Serials.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/C4/Serials.pm +++ a/C4/Serials.pm @@ -852,7 +852,7 @@ this function returns every serial waited for a given subscription as well as the number of issues registered in the database (all types) this number is used to see if a subscription can be deleted (=it must have only 1 issue) -$statuses is an arrayref of statuses. +$statuses is an arrayref of statuses and is mandatory. =cut --- a/t/db_dependent/Serials.t +++ a/t/db_dependent/Serials.t @@ -210,7 +210,7 @@ my @statuses = qw( 2 2 3 3 3 3 3 4 4 41 42 43 44 5 ); my $counter = 0; for my $status ( @statuses ) { my $serialseq = "No.".$counter; - my ( $expected_serial ) = GetSerials2( $subscriptionid, 1 ); + my ( $expected_serial ) = GetSerials2( $subscriptionid, [1] ); C4::Serials::ModSerialStatus( $expected_serial->{serialid}, $serialseq, $publisheddate, $publisheddate, $statuses[$counter], 'an useless note' ); $counter++; } --