From 519aa84d2b6fd5e19bd14dde18d12ba7e10ca06c Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 24 May 2024 16:10:44 +0000 Subject: [PATCH] Bug 30372: Fix value->attribute Test plan: - Activate patron self registration without email verification - Create several patron attributes as visible and editable in the OPAC, make one mandatory - Register as a new patron from the OPAC - Fill in all required fields but the extended attribute - Fill in at least one of the non-required extended attributes - Submit - Verify that the contents of the other extended attribute fields are still present. Signed-off-by: David Nind Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer (cherry picked from commit 4616ddc8ab4b7b570f9444f999c2b50a463df6d4) Signed-off-by: Lucas Gass --- 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 7adc381d47..c40d09d512 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -671,7 +671,7 @@ sub GeneratePatronAttributesForm { # or taken from the patron itself if ( defined $entered_attributes ) { foreach my $attr (@$entered_attributes) { - push @{ $attr_values{ $attr->{code} } }, $attr->{value}; + push @{ $attr_values{ $attr->{code} } }, $attr->{attribute}; } } elsif ( defined $borrowernumber ) { -- 2.39.5