From 65152511524f144512b959efb9a949994e9f3449 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Sun, 11 Nov 2007 16:59:39 -0600 Subject: [PATCH] Fix for variable scoping problem Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- admin/marctagstructure.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/admin/marctagstructure.pl b/admin/marctagstructure.pl index b98d965f99..ef377e8e36 100755 --- a/admin/marctagstructure.pl +++ b/admin/marctagstructure.pl @@ -153,9 +153,9 @@ if ($op eq 'add_form') { ################## ADD_VALIDATE ################################## # called by add_form, used to insert/modify data in DB } elsif ($op eq 'add_validate') { + my $tagfield =$input->param('tagfield'); if ($input->param('modif')) { $sth=$dbh->prepare("UPDATE marc_tag_structure SET liblibrarian=? ,libopac=? ,repeatable=? ,mandatory=? ,authorised_value=? WHERE frameworkcode=? AND tagfield=?"); - my $tagfield =$input->param('tagfield'); my $liblibrarian = $input->param('liblibrarian'); my $libopac =$input->param('libopac'); my $repeatable =$input->param('repeatable'); @@ -174,7 +174,6 @@ if ($op eq 'add_form') { $sth->finish; } else { $sth=$dbh->prepare("INSERT INTO marc_tag_structure (tagfield,liblibrarian,libopac,repeatable,mandatory,authorised_value,frameworkcode) values (?,?,?,?,?,?,?)"); - my $tagfield =$input->param('tagfield'); my $liblibrarian = $input->param('liblibrarian'); my $libopac =$input->param('libopac'); my $repeatable =$input->param('repeatable'); -- 2.39.5