From 8b17c803ec1607c446e35c86bf3db40dbd918f33 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 31 Aug 2021 15:55:15 +0200 Subject: [PATCH] Bug 28929: Prevent flags to be sent during patron's edition * selfreg and selfmod for OPAC * patron's edition on staff Signed-off-by: Marcel de Rooy Tested OPAC and staff side. Prevents mangling flags column. Signed-off-by: Nick Clemens Signed-off-by: Kyle M Hall Signed-off-by: Kyle M Hall --- members/memberentry.pl | 1 + opac/opac-memberentry.pl | 1 + 2 files changed, 2 insertions(+) diff --git a/members/memberentry.pl b/members/memberentry.pl index da8a324c78..b9d43e80f1 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -225,6 +225,7 @@ if ( $op eq 'insert' || $op eq 'modify' || $op eq 'save' || $op eq 'duplicate' ) # remove keys from %newdata that is not part of patron's attributes { my @keys_to_delete = ( + qr/^flags$/, qr/^BorrowerMandatoryField$/, qr/^category_type$/, qr/^check_member$/, diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl index c9a4790efd..f3b6374a85 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -522,6 +522,7 @@ sub ParseCgiForBorrower { # Replace checkbox 'agreed' by datetime in gdpr_proc_consent $borrower{gdpr_proc_consent} = dt_from_string if $borrower{gdpr_proc_consent} && $borrower{gdpr_proc_consent} eq 'agreed'; + delete $borrower{flags}; return %borrower; } -- 2.39.5