From 8ed263f2bce02f49574d9e269a99a36a0ab2c196 Mon Sep 17 00:00:00 2001 From: tipaul Date: Wed, 22 Nov 2006 16:02:52 +0000 Subject: [PATCH] fix for #1177 = removal of additionnal authors & bibliosubjects --- C4/Biblio.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 1b3486f47c..00792c088a 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -1492,6 +1492,11 @@ sub NEWdelbiblio { while ( my ($biblioitemnumber) = $sth->fetchrow ) { OLDdeletebiblioitem( $dbh, $biblioitemnumber ); } + # delete from other koha tables + $sth = $dbh->prepare("DELETE FROM bibliosubject WHERE biblionumber=?"); + $sth->execute($biblio); + $sth = $dbh->prepare("DELETE FROM additionalauthors WHERE biblionumber=?"); + $sth->execute($biblio); &MARCdelbiblio( $dbh, $bibid, 0 ); } @@ -3007,6 +3012,9 @@ Paul POULAIN paul.poulain@free.fr # $Id$ # $Log$ +# Revision 1.115.2.64 2006/11/22 16:02:52 tipaul +# fix for #1177 = removal of additionnal authors & bibliosubjects +# # Revision 1.115.2.63 2006/11/22 13:58:11 tipaul # there are some strange problems with mysql_fetchrow_hashref, that reorders silently the hashref returned. # This hack fixes them by retrieving the results in an array & rebuilding the MARC record from that. -- 2.39.5