Bug 23150: (follow-up) Make gdpr_proc_consent mandatory for create
[koha-equinox.git] / opac / opac-memberentry.pl
index dc9c680..f76a30c 100755 (executable)
@@ -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;