@@ -, +, @@ hidelostitems - Apply the regression tests patch - Run: $ kshell k$ prove t/db_dependent/Koha/Item.t - Apply this patch - Run: k$ prove t/db_dependent/Koha/Item.t - Sign off :-D --- Koha/Item.pm | 4 ++++ 1 file changed, 4 insertions(+) --- a/Koha/Item.pm +++ a/Koha/Item.pm @@ -214,6 +214,10 @@ sub hidden_in_opac { my $rules = $params->{rules} // {}; + return 1 + if C4::Context->preference('hidelostitems') and + $self->itemlost > 0; + my $hidden_in_opac = 0; foreach my $field ( keys %{$rules} ) { --