Quick fix to stop ppl from being able to delete biblios that have items attached

This commit is contained in:
rangi 2001-02-27 22:08:57 +00:00
parent cc578cfd59
commit 2122d767a4
1 changed files with 12 additions and 1 deletions

View File

@ -16,6 +16,17 @@ my $input = new CGI;
my $biblio=$input->param('biblio');
#print $input->header;
#check no items attached
my $count=C4::Acquisitions::itemcount($biblio);
delbiblio($biblio);
#print $count;
if ($count > 0){
print $input->header;
print "This biblio has $count items attached, please delete them before deleting this biblio<p>
";
} else {
#delbiblio($biblio);
print $input->redirect("/catalogue/");
}