[Koha-bugs] [Bug 2882] New: 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 20:50:20 CET 2008


http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2882

           Summary: Delete library silently fails when patrons exist for
                    that library
           Product: Koha
           Version: rel_3_0
          Platform: PC
        OS/Version: Linux - Other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Architecture, internals, and plumbing
        AssignedTo: galen.charlton at liblime.com
        ReportedBy: koha at brinkerhoff.org
         QAContact: koha-bugs at lists.koha.org


When I try to delete the 'Franklin' library from the sample data included with
Koha 3.00.00 the web interface claims the library entry was deleted:

Library deleted

However the page refreshes and the library is still present.  

[Tue Dec 23 14:48:31 2008] [error] [client 216.107.221.XXX] [Tue Dec 23
14:48:31 2008] branches.pl: DBD::mysql::st execute failed: Cannot delete or
update a parent row: a foreign key constraint fails (`koha/borrowers`,
CONSTRAINT `borrowers_ibfk_2` FOREIGN KEY (`branchcode`) REFERENCES `branches`
(`branchcode`)) at /usr/share/koha/lib/C4/Branch.pm line 473., referer:
http://XXXXXXXXXX:8080/cgi-bin/koha/admin/branches.pl?branchcode=FRL&branchname=Franklin&op=delete




------- 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