LP#1779158 Fix Vandelay API existing name thinko
authorBill Erickson <berickxx@gmail.com>
Tue, 25 Sep 2018 16:53:11 +0000 (12:53 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 11 Oct 2018 18:56:30 +0000 (14:56 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm

index a25a59f..dba6eb2 100644 (file)
@@ -922,7 +922,7 @@ sub create_session_tracker {
         # if other trackers exist for this key, adopt the name
         my $existing = 
             $e->search_vandelay_session_tracker({session_key => $key})->[0];
-        $name = $existing->name if $name;
+        $name = $existing->name if $existing;
 
     } else {
         # anonymous tracker