From: Chris Sharp Date: Mon, 29 Aug 2022 16:42:54 +0000 (-0400) Subject: declare the variable, and update it if needed X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=562cbf99e820e02a30f3654ed682f3adeceed6b0;p=evergreen%2Fpines.git declare the variable, and update it if needed Signed-off-by: Chris Sharp --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm index bfe92e711e..69db0767a3 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm @@ -19,14 +19,12 @@ my $U = 'OpenILS::Application::AppUtils'; # Do the subroutines have access to this variable??? my $self = shift; my $path = $self->apache->path_info; +my $update_type = 'register'; if ($path =~ m|opac/erenew/submit|) { my $update_type = 'renew'; -} else { - my $update_type = 'register'; } - # Create different api_fields array if registration or renewal if ($update_type == 'renew') { my @api_fields = (