Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
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
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++;
}