Bug 14658 - (QA followup) make it easier to grep for these syspref names

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

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

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jesse Weaver 2015-12-18 10:20:07 -07:00 committed by Kyle M Hall
parent d2f5f4c90a
commit a44859d082
1 changed files with 3 additions and 2 deletions

View File

@ -254,8 +254,9 @@ sub GetHiddenFields {
my ( $mandatory, $action ) = @_;
my %hidden_fields;
my $BorrowerUnwantedField =
C4::Context->preference( "PatronSelf" . ucfirst($action) . "BorrowerUnwantedField" );
my $BorrowerUnwantedField = $action eq 'modification' ?
C4::Context->preference( "PatronSelfModificationBorrowerUnwantedField" ) :
C4::Context->preference( "PatronSelfRegistrationBorrowerUnwantedField" );
my @fields = split( /\|/, $BorrowerUnwantedField );
foreach (@fields) {