In Koha::Items->hidden_in_opac there is often a warning : Use of uninitialized value in string eq at /home/koha/src/Koha/Item.pm line 633. This the line : if ( any { $self->$field eq $_ } @{ $rules->{$field} } ) { When $self->$field is undef, the eq creates the warn. This can happen with any nillable field like items.location not yet defined after item acquisition.
Not sure how to fix. Do we consider undef like empty string in order to allow hiding undef ?
Shouldn't it be updated to one of the following: 1. if ( any { $self->$field && $self->$field eq $_ } @{ $rules->{$field} } ) { 2. if ( any { my $field = $self->$field; ($field && $field eq $_ ) ? 1 : 0; } @{ $rules->{$field} } ) { Or am I missing something?