projects
/
koha-equinox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Bug 22749: Make Koha::Item->hidden_in_opac respect hidelostitems
[koha-equinox.git]
/
Koha
/
Item.pm
diff --git
a/Koha/Item.pm
b/Koha/Item.pm
index
66e0f9c
..
49ae8e1
100644
(file)
--- a/
Koha/Item.pm
+++ b/
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} ) {