Browse Source

Bug 14658: Remove warning if prefs are not defined

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
new_12478_elasticsearch
Jonathan Druart 8 years ago
committed by Kyle M Hall
parent
commit
4e9b187c14
  1. 2
      opac/opac-memberentry.pl

2
opac/opac-memberentry.pl

@ -258,7 +258,7 @@ sub GetHiddenFields {
C4::Context->preference( "PatronSelfModificationBorrowerUnwantedField" ) :
C4::Context->preference( "PatronSelfRegistrationBorrowerUnwantedField" );
my @fields = split( /\|/, $BorrowerUnwantedField );
my @fields = split( /\|/, $BorrowerUnwantedField || q|| );
foreach (@fields) {
next unless m/\w/o;
#Don't hide mandatory fields

Loading…
Cancel
Save