From f368f37feb5baa8f53fe4e562ba42b90c47b5bb6 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@biblibre.com>
Date: Wed, 12 Dec 2012 16:47:37 +0100
Subject: [PATCH] Bug 9272: Eliminate error when deleting authorized value

Try to delete an authorized value. if you don't get any error, this
patch works.

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Enabled debug, tried with and without Plack, works fine for both.

Signed-off-by: Elliott Davis <elliott@bywatersolions.com>
Works as advertised. Follows coding guidelines.
---
 admin/authorised_values.pl |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/admin/authorised_values.pl b/admin/authorised_values.pl
index 9e90182..c00bb64 100755
--- a/admin/authorised_values.pl
+++ b/admin/authorised_values.pl
@@ -224,8 +224,6 @@ if ($op eq 'add_form') {
 	my $id = $input->param('id');
 	my $sth=$dbh->prepare("delete from authorised_values where id=?");
 	$sth->execute($id);
-    $sth = $dbh->prepare("DELETE FROM authorised_values_branches WHERE id = ?");
-    $sth->execute($id);
 	print "Content-Type: text/html\n\n<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=authorised_values.pl?searchfield=$searchfield&offset=$offset\"></html>";
 	exit;
 													# END $OP eq DELETE_CONFIRMED
-- 
1.7.2.5