From b6b773c39a52ee92c96e2d10ceed323f55e8b885 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 20 Jun 2019 12:37:27 +0000 Subject: [PATCH] Bug 23150: (follow-up) Make gdpr_proc_consent mandatory for create When updating (patron modification), the field should not be required. Test plan: Check patron modification on opac. Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize (cherry picked from commit 6dc8306b58bc1207f396d2df919a3daf4712e8e5) Signed-off-by: Fridolin Somers --- opac/opac-memberentry.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl index dc9c680038..f76a30c098 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -366,6 +366,7 @@ sub GetMandatoryFields { C4::Context->preference("PatronSelfRegistrationBorrowerMandatoryField"); my @fields = split( /\|/, $BorrowerMandatoryField ); + push @fields, 'gdpr_proc_consent' if C4::Context->preference('GDPR_Policy') && $action eq 'create'; foreach (@fields) { $mandatory_fields{$_} = 1; -- 2.39.5