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>
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) {