Fix for Bug 4424, MARC Framework deletion incorrectly reports usage count
authorOwen Leonard <oleonard@myacpl.org>
Thu, 29 Apr 2010 15:45:19 +0000 (11:45 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Fri, 30 Apr 2010 00:59:29 +0000 (20:59 -0400)
Thanks to Thomas Dukleth for the fix.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
admin/biblio_framework.pl

index f7a7091..f2c147e 100755 (executable)
@@ -91,7 +91,7 @@ if ($op eq 'add_form') {
 # called by default form, used to confirm deletion of data in DB
 } elsif ($op eq 'delete_confirm') {
        # Check both categoryitem and biblioitems, see Bug 199
-    my $sth = $dbh->prepare("select count(*) as total from marc_tag_structure where frameworkcode=?");
+    my $sth = $dbh->prepare("select count(*) as total from biblio where frameworkcode=?");
     $sth->execute($frameworkcode);
     my $total = $sth->fetchrow_hashref->{total};