https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25296
--- Comment #4 from Frédéric Demians <[email protected]> --- Coming back from bug 25297, I have a question: Is it necessary to explicitly call: Koha::Objects->new->empty; When you assign a result: my $result = Koha::Holds->new; Don't you have already $result->count == 0 ? If this was the case, your code in bug 25297 could become something like that: my $result = Koha::Holds->new; my $biblio = $self->biblio; return $result unless $biblio; my $items_rs = $self->_result->aqorders_items; my @item_numbers = $items_rs->get_column('itemnumber')->all; return $result unless @item_numbers; -- 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/
