From 88af85fe9ee8774f107899dff582cac40f4fa573 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Jan 2025 10:42:10 +0100 Subject: [PATCH] Bug 35635: Fix server-side check Signed-off-by: Jonathan Druart --- opac/opac-memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl index 28b7a1aa26f..00faae801b3 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -477,7 +477,7 @@ sub CheckMandatoryAttributes{ for my $attribute (@$attributes ) { my $attr = Koha::Patron::Attribute::Types->find($attribute->{code}); push @empty_mandatory_fields, $attribute->{code} - if $attr && $attr->mandatory && $attribute->{attribute} =~ m|^\s*$|; + if $attr && $attr->opac_mandatory && $attribute->{attribute} =~ m|^\s*$|; } return @empty_mandatory_fields; -- 2.34.1