From 6def2804276a03feef969520dd364fb4bb4e8349 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: Jonathan Druart --- 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 135e994d58..c7082a8746 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -215,6 +215,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 cce33d8c8b..cad1e867a4 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