X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=admin%2Fmarctagstructure.pl;h=a86d78841b34a755b8508249b9d6e7bf7a01f010;hb=81d5f9dcdae68037a43c7953be1e91a2fcf92b04;hp=92e0d99b196869e25cc2e6825c32638e50e9c31c;hpb=a8222aeeb1169d7b1939d1e64c319a16e3846e8c;p=koha.git diff --git a/admin/marctagstructure.pl b/admin/marctagstructure.pl index 92e0d99b19..a86d78841b 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 (?,?,?,?,?,?,?)");