From aded164e59eb7b2cac4587246dabfe48123ba2ae Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 10 Aug 2017 09:24:08 +0200 Subject: [PATCH] Bug 19071: Fix Members/IssueSlip.t Content-Type: text/plain; charset=utf-8 Resolve: DBD::mysql::db do failed: Cannot delete or update a parent row: a foreign key constraint fails (`koha_master`.`clubs`, CONSTRAINT `clubs_ibfk_2` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`)) [for Statement "DELETE FROM branches"] at t/db_dependent/Members/IssueSlip.t line 44. We do not need to delete all branches here. Test plan: Run t/db_dependent/Members/IssueSlip.t --- t/db_dependent/Members/IssueSlip.t | 1 - 1 file changed, 1 deletion(-) diff --git a/t/db_dependent/Members/IssueSlip.t b/t/db_dependent/Members/IssueSlip.t index c22cb5a..438fc3c 100644 --- a/t/db_dependent/Members/IssueSlip.t +++ b/t/db_dependent/Members/IssueSlip.t @@ -41,7 +41,6 @@ my $dbh = C4::Context->dbh; $dbh->do(q|DELETE FROM issues|); $dbh->do(q|DELETE FROM borrowers|); $dbh->do(q|DELETE FROM items|); -$dbh->do(q|DELETE FROM branches|); $dbh->do(q|DELETE FROM biblio|); $dbh->do(q|DELETE FROM categories|); $dbh->do(q|DELETE FROM letter|); -- 2.1.4