Bugzilla – Attachment 63545 Details for
Bug 18376
authority framework creation fails under Plack
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18376: Do not need to prepare a single statement, use do
Bug-18376-Do-not-need-to-prepare-a-single-statemen.patch (text/plain), 1.55 KB, created by
Jonathan Druart
on 2017-05-18 19:45:23 UTC
(
hide
)
Description:
Bug 18376: Do not need to prepare a single statement, use do
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-05-18 19:45:23 UTC
Size:
1.55 KB
patch
obsolete
>From c4fb6892cbcf96322694d2fb4e71680be0ab9792 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 18 May 2017 16:40:42 -0300 >Subject: [PATCH] Bug 18376: Do not need to prepare a single statement, use do > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > admin/auth_tag_structure.pl | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > >diff --git a/admin/auth_tag_structure.pl b/admin/auth_tag_structure.pl >index 0832d14cab..4a3a67a1bf 100755 >--- a/admin/auth_tag_structure.pl >+++ b/admin/auth_tag_structure.pl >@@ -160,10 +160,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"); >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18376
:
61817
|
63401
|
63544
| 63545