[Koha-bugs] [Bug 8034] Enable server print queue selection
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Feb 8 10:40:14 CET 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8034
--- Comment #34 from Jonathan Druart <jonathan.druart at biblibre.com> ---
(In reply to comment #33)
> > So you must catch the error raised by mysql if a printer is deleted and some
> > branches use it.
>
> I can do that if you insist, however current version does not do that, ie
> does not check anything at all. This is an improvement as is.
It is essential. The current version of this script is not reachable from any
page.
Without this catch, I get an error:
DBD::mysql::db do failed: Cannot delete or update a parent row: a foreign key
constraint fails (`koha`.`branches`, CONSTRAINT `branches_ibfk_1` FOREIGN KEY
(`branchprinter`) REFERENCES `printers` (`printqueue`) ON UPDATE CASCADE) at
/home/koha/src/C4/Printer.pm line 144.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list