@@ -, +, @@ if priority 1 hold is suspended --- circ/pendingreserves.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/circ/pendingreserves.pl +++ a/circ/pendingreserves.pl @@ -156,7 +156,7 @@ unless ( $enddate ) { # building query parameters my %where = ( 'me.found' => undef, - 'me.priority' => 1, + 'me.priority' => { '!=' => 0 }, 'me.suspend' => 0, 'itembib.itemlost' => 0, 'itembib.withdrawn' => 0, @@ -188,7 +188,7 @@ if ( C4::Context->preference('IndependentBranches') ){ # get all distinct unfulfilled reserves my $holds = Koha::Holds->search( { %where }, - { join => 'itembib', distinct => 1, columns => qw[me.biblionumber] } + { join => 'itembib', distinct => 1, columns => qw[me.biblionumber] } ); my @biblionumbers = $holds->get_column('biblionumber'); @@ -202,7 +202,7 @@ if ( $holds->count ) { # patrons count per biblio my $patrons_count = { map { $_->{biblionumber} => $_->{patrons_count} } @{ Koha::Holds->search( - {}, + { 'suspend' => 0 }, { select => [ 'biblionumber', { count => { distinct => 'borrowernumber' } } ], as => [qw( biblionumber patrons_count )], --