Bug 14658 - (QA followup) make it easier to grep for these syspref names
authorJesse Weaver <pianohacker@gmail.com>
Fri, 18 Dec 2015 17:20:07 +0000 (10:20 -0700)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 26 Feb 2016 13:47:21 +0000 (13:47 +0000)
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>
opac/opac-memberentry.pl

index f3cd3fc..7132d8b 100755 (executable)
@@ -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) {