@@ -, +, @@ resultset $ kshell k$ prove t/db_dependent/Koha/Objects.t --- Koha/Objects.pm | 1 + 1 file changed, 1 insertion(+) --- a/Koha/Objects.pm +++ a/Koha/Objects.pm @@ -377,6 +377,7 @@ sub empty { class => $self ) unless ref $self; + $self = $self->search(\'0 = 1'); $self->_resultset()->set_cache([]); return $self; --