bug 3597: "delete all items" no longer deletes checked out or waiting items
authorGalen Charlton <gmcharlt@gmail.com>
Fri, 22 Oct 2010 02:56:04 +0000 (22:56 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Fri, 22 Oct 2010 02:56:04 +0000 (22:56 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
cataloguing/additem.pl

index 6a50b9c..9676fd6 100755 (executable)
@@ -269,7 +269,10 @@ if ($op eq "additem") {
         my $items = &GetItemsByBiblioitemnumber($biblioitem->{biblioitemnumber});
 
         foreach my $item (@$items){
-            &DelItem($dbh,$biblionumber,$item->{itemnumber});
+            # FIXME although it won't delete items that have loans
+            # or waiting holds on them, should explicitly tell operator
+            # about items that are not deleted
+            &DelItemCheck($dbh,$biblionumber,$item->{itemnumber});
         }
        }
 #-------------------------------------------------------------------------------