Bug 42349: Fix filtering items by recalls
On the holdings table the filter by status=recalls is not working correctly. Test plan: Add a recall on an item of a bibliographic record that has several items. Filter the items table by status=recall => Without this patch all items are displayed => With this patch applied only the item with a recall is displayed Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Aleisha Amohia <aleisha@catalyst.net.nz> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
9544e68acc
commit
8f98b493ae
|
|
@ -311,9 +311,9 @@ sub filter_by_has_recalls {
|
|||
|
||||
$params //= {};
|
||||
my $recalls = Koha::Recalls->search(
|
||||
{ %$params, 'me.itemnumber' => [ $self->get_column('itemnumber') ], 'me.item_level' => 1, },
|
||||
{ %$params, 'me.item_id' => [ $self->get_column('itemnumber') ], 'me.item_level' => 1, },
|
||||
{
|
||||
columns => ['itemnumber'],
|
||||
columns => ['item_id'],
|
||||
distinct => 1
|
||||
}
|
||||
)->_resultset->as_query;
|
||||
|
|
|
|||
Loading…
Reference in New Issue