https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37334

--- Comment #133 from Emmi Takkinen <[email protected]> ---
There's most likely something wrong with filter_by_in_transit and
filter_by_has_recalls. Commenting them from filter_by_available fixes filtering
for available status.

In filter_by_has_recalls there is a wrong column name where itemnumbers are
searched from. It should be item_id, not itemnumber:

 my $recalls = Koha::Recalls->search(
    { %$params, 'me.item_id' => [ $self->get_column('itemnumber') ],
'me.item_level' => 1,  },
        {
            columns  => ['item_id'],
            distinct => 1
        }
)->_resultset->as_query;

In filter_by_in_transit columns are ok, so I'm not sure what's wrong with it.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to