duplicate_framework needs $dbh so we get it from C4::Context
---
 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.2.5

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to