making sure itemid is set when in-house use is made by barcode
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 29 Aug 2006 01:00:34 +0000 (01:00 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 29 Aug 2006 01:00:34 +0000 (01:00 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5748 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 469d414..5e29e43 100644 (file)
@@ -509,8 +509,9 @@ sub create_in_house_use {
                if( $copyid ) {
                        $copy = $e->retrieve_asset_copy($copyid) or return $e->event;
                } else {
-                       $copy = $e->search_asset_copy({barcode=>$params->{barcode}})->[0]
+                       $copy = $e->search_asset_copy({barcode=>$params->{barcode}, deleted => 'f'})->[0]
                                or return $e->event;
+                       $copyid = $copy->id;
                }
        }