Fix "thinko" in ILS->find_user_barcode.
authorJason Stephenson <jason@sigio.com>
Sun, 24 Aug 2014 16:10:36 +0000 (12:10 -0400)
committerJason Stephenson <jason@sigio.com>
Sun, 24 Aug 2014 16:10:36 +0000 (12:10 -0400)
Signed-off-by: Jason Stephenson <jason@sigio.com>
lib/NCIP/ILS.pm

index 544baa8..65309ea 100644 (file)
@@ -341,8 +341,8 @@ sub find_user_barcode {
             }
         } else {
             $authinput = $request->{$message}->{UserId};
-            $field = 'UserIdentifierValue';
             if ($authinput) {
+                $field = 'UserIdentifierValue';
                 if (ref $authinput ne 'ARRAY') {
                     $authinput = [$authinput];
                 }