[Koha-bugs] [Bug 2882] Delete library silently fails when patrons exist for that library
bugzilla-daemon at pippin.metavore.com
bugzilla-daemon at pippin.metavore.com
Tue Dec 23 21:03:06 CET 2008
http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2882
------- Comment #2 from koha at brinkerhoff.org 2008-12-23 12:03 -------
diff --git a/admin/branches.pl b/admin/branches.pl
index fecc030..c01aa59 100755
--- a/admin/branches.pl
+++ b/admin/branches.pl
@@ -123,6 +123,11 @@ elsif ( $op eq 'delete' ) {
$sth->execute( $branchcode, $branchcode );
my ($total) = $sth->fetchrow_array;
$sth->finish;
+
+ my $sth = $dbh->prepare("select count(*) from borrowers where
branchcode=?");
+ $sth->execute($branchcode);
+ my ($total) += $sth->fetchrow_array;
+ $sth->finish;
my $message;
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the Koha-bugs
mailing list