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:
parent
d2f5f4c90a
commit
a44859d082
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue