diff --git a/Koha/Objects.pm b/Koha/Objects.pm index 7824d83d27..c298837647 100644 --- a/Koha/Objects.pm +++ b/Koha/Objects.pm @@ -336,6 +336,7 @@ sub empty { class => $self ) unless ref $self; + $self = $self->search(\'0 = 1'); $self->_resultset()->set_cache([]); return $self;