Bugzilla – Attachment 8581 Details for
Bug 7799
admin/marctagstructure.pl needs $dbh plack scoping
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7799 - admin/marctagstructure.pl plack scoping
Bug-7799---adminmarctagstructurepl-plack-scoping.patch (text/plain), 1.11 KB, created by
Matthias Meusburger
on 2012-03-23 10:57:48 UTC
(
hide
)
Description:
Bug 7799 - admin/marctagstructure.pl plack scoping
Filename:
MIME Type:
Creator:
Matthias Meusburger
Created:
2012-03-23 10:57:48 UTC
Size:
1.11 KB
patch
obsolete
>From b7fba606032741f257f660d45e0608586a6138ef Mon Sep 17 00:00:00 2001 >From: Dobrica Pavlinusic <dpavlin@rot13.org> >Date: Thu, 22 Mar 2012 14:05:22 +0100 >Subject: [PATCH] Bug 7799 - admin/marctagstructure.pl plack scoping > >duplicate_framework needs $dbh so we get it from C4::Context > >Signed-off-by: Matthias Meusburger <matthias.meusburger@biblibre.com> >--- > admin/marctagstructure.pl | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > >diff --git a/admin/marctagstructure.pl b/admin/marctagstructure.pl >index 92e0d99..a86d788 100755 >--- a/admin/marctagstructure.pl >+++ b/admin/marctagstructure.pl >@@ -348,6 +348,7 @@ sub StringSearch { > # > sub duplicate_framework { > my ($newframeworkcode,$oldframeworkcode) = @_; >+ my $dbh = C4::Context->dbh; > my $sth = $dbh->prepare("select tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value from marc_tag_structure where frameworkcode=?"); > $sth->execute($oldframeworkcode); > my $sth_insert = $dbh->prepare("insert into marc_tag_structure (tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode) values (?,?,?,?,?,?,?)"); >-- >1.7.5.4
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 7799
:
8509
|
8572
| 8581