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=930ac7d0d10f8461153315e675e1a6cd9bbd82f7;p=working%2FEvergreen.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 d01bceef4e..ef80e31317 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm @@ -19,11 +19,10 @@ 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