Bug 18376: Do not need to prepare a single statement, use do
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> (cherry picked from commit285dd88356) Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> (cherry picked from commitf598d07f0d) Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
parent
c2029975a2
commit
07e3104429
|
|
@ -176,10 +176,8 @@ if ($op eq 'add_form') {
|
|||
# called by delete_confirm, used to effectively confirm deletion of data in DB
|
||||
} elsif ($op eq 'delete_confirmed') {
|
||||
unless (C4::Context->config('demo') eq 1) {
|
||||
my $sth_tag = $dbh->prepare("delete from auth_tag_structure where tagfield=? and authtypecode=?");
|
||||
$sth_tag->execute($searchfield,$authtypecode);
|
||||
my $sth_sub = $dbh->prepare("delete from auth_subfield_structure where tagfield=? and authtypecode=?");
|
||||
$sth_sub->execute($searchfield,$authtypecode);
|
||||
$dbh->do(q|delete from auth_tag_structure where tagfield=? and authtypecode=?|, undef, $searchfield, $authtypecode);
|
||||
$dbh->do(q|delete from auth_subfield_structure where tagfield=? and authtypecode=?|, undef, $searchfield, $authtypecode);
|
||||
}
|
||||
my $tagfield = $input->param('tagfield');
|
||||
print $input->redirect("/cgi-bin/koha/admin/auth_tag_structure.pl?searchfield=$tagfield&authtypecode=$authtypecode");
|
||||
|
|
|
|||
Loading…
Reference in New Issue