diff --git a/Koha/Objects.pm b/Koha/Objects.pm index 3ea4727048..2f16b35888 100644 --- a/Koha/Objects.pm +++ b/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;