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

index d01bcee..ef80e31 100644 (file)
@@ -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