Make this method return 1 and 0 like the description says. Currently the staff clien...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 21 Sep 2008 02:12:04 +0000 (02:12 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 21 Sep 2008 02:12:04 +0000 (02:12 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10660 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Actor.pm

index 5e17c0f..7a7c219 100644 (file)
@@ -2602,8 +2602,13 @@ sub barcode_exists {
        my $e = new_editor(authtoken=>$auth);
        return $e->event unless $e->checkauth;
        my $card = $e->search_actor_card({barcode => $barcode});
-    return undef unless @$card;
-    return $card->[0]->usr;
+       if (@$card) {
+               return 1;
+       } else {
+               return 0;
+       }
+       #return undef unless @$card;
+       #return $card->[0]->usr;
 }