From c4100c48a8dbee0887d3ee3fe3811e8fd95f880c Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 13 Sep 2021 12:56:30 +0000 Subject: [PATCH] Bug 28935: (QA follow-up) Use BorrowerUnwantedField on staff client Signed-off-by: Nick Clemens Signed-off-by: Marcel de Rooy Signed-off-by: Victor Grousset/tuxayo --- members/memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index 54b0baa4d1..278ae933df 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -251,7 +251,7 @@ if ( $op eq 'insert' || $op eq 'modify' || $op eq 'save' || $op eq 'duplicate' ) qr/^guarantor_surname$/, qr/^delete_guarantor$/, ); - push @keys_to_delete, map { qr/^$_$/ } split( /\s*\|\s*/, C4::Context->preference('PatronSelfRegistrationBorrowerUnwantedField') || q{} ); + push @keys_to_delete, map { qr/^$_$/ } split( /\s*\|\s*/, C4::Context->preference('BorrowerUnwantedField') || q{} ); for my $regexp (@keys_to_delete) { for (keys %newdata) { delete($newdata{$_}) if /$regexp/; -- 2.39.5