From 248106020436e7b60b767c54ee034194c29f8969 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 21 Jul 2023 12:08:14 +0200 Subject: [PATCH] Bug 33940: Fix what we send to memberentry --- members/memberentry.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index 35d9b0bd87b..fad9b713d6b 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -298,9 +298,9 @@ if ($op eq 'save' || $op eq 'insert'){ for my $m ( @{ $is_valid->messages } ) { my $message = $m->message; if ( $message eq 'already_exists' ) { - push @messages, { code => 'ERROR_cardnumber_already_exists' }; + $template->param( ERROR_cardnumber_already_exists => 1 ); } elsif ( $message eq 'invalid_length' ) { - push @messages, { code => 'ERROR_cardnumber_length' }; + $template->param( ERROR_cardnumber_length => 1 ); } } } -- 2.25.1