From a6d1cc87965420a0d4a50131395c9ba171c9459b 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 --- 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.11.0