[Koha-bugs] [Bug 25296] Add a way to force an empty Koha::Objects resultset

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 28 13:31:18 CEST 2020


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

--- Comment #5 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Frédéric Demians from comment #4)
> 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 ?

I wrote the regression tests for the behavior so you can play with other
options. The short answer is Koha::Holds->new refers to the whole table rows.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list