From 1ff7bd2840d82f6bb4dfa8cd2a4cc85e70f04bc1 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 --- 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 b5f40ea4b4..80d09f2db9 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 aa1e631b85..5e57fbc5ea 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -523,6 +523,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