@@ -, +, @@ $ kshell k$ prove t/db_dependent/Koha/Objects.t --- Koha/Objects.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/Koha/Objects.pm +++ a/Koha/Objects.pm @@ -380,10 +380,9 @@ sub empty { class => $self ) unless ref $self; - $self = $self->search(\'0 = 1'); $self->_resultset()->set_cache([]); - return $self; + return $self->search(\'0 = 1'); } =head3 Koha::Objects->reset(); --