declare the variable, and update it if needed
authorChris Sharp <csharp@georgialibraries.org>
Mon, 29 Aug 2022 16:42:54 +0000 (12:42 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 29 Aug 2022 16:42:54 +0000 (12:42 -0400)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm

index bfe92e7..69db076 100644 (file)
@@ -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 = (