[Bug 2882] Delete library silently fails when patrons exist for that library
23 Dec
2008
23 Dec
'08
9:03 p.m.
http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2882 ------- Comment #2 from koha@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.
6412
Age (days ago)
6412
Last active (days ago)
0 comments
1 participants
participants (1)
-
bugzilla-daemon@pippin.metavore.com