View | Details | Raw Unified | Return to bug 11814
Collapse All | Expand All

(-)a/C4/Serials.pm (-1 / +1 lines)
Lines 852-858 this function returns every serial waited for a given subscription Link Here
852
as well as the number of issues registered in the database (all types)
852
as well as the number of issues registered in the database (all types)
853
this number is used to see if a subscription can be deleted (=it must have only 1 issue)
853
this number is used to see if a subscription can be deleted (=it must have only 1 issue)
854
854
855
$statuses is an arrayref of statuses.
855
$statuses is an arrayref of statuses and is mandatory.
856
856
857
=cut
857
=cut
858
858
(-)a/t/db_dependent/Serials.t (-2 / +1 lines)
Lines 210-216 my @statuses = qw( 2 2 3 3 3 3 3 4 4 41 42 43 44 5 ); Link Here
210
my $counter = 0;
210
my $counter = 0;
211
for my $status ( @statuses ) {
211
for my $status ( @statuses ) {
212
    my $serialseq = "No.".$counter;
212
    my $serialseq = "No.".$counter;
213
    my ( $expected_serial ) = GetSerials2( $subscriptionid, 1 );
213
    my ( $expected_serial ) = GetSerials2( $subscriptionid, [1] );
214
    C4::Serials::ModSerialStatus( $expected_serial->{serialid}, $serialseq, $publisheddate, $publisheddate, $statuses[$counter], 'an useless note' );
214
    C4::Serials::ModSerialStatus( $expected_serial->{serialid}, $serialseq, $publisheddate, $publisheddate, $statuses[$counter], 'an useless note' );
215
    $counter++;
215
    $counter++;
216
}
216
}
217
- 

Return to bug 11814