From a086de137aa0c48d6f1fa6f81274dfa2f71e347c Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 14 May 2008 17:09:41 -0500 Subject: [PATCH] kohabug 2100 - allow deletion of non-default MARC framework An earlier attempt to prevent deletion of default framework by passing a suitably constructured URL actually had the opposite effect - the default framework could be deleted, but ia hon-default one could not. Signed-off-by: Joshua Ferraro --- admin/biblio_framework.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/biblio_framework.pl b/admin/biblio_framework.pl index 1f345b70c2..3837ca5464 100755 --- a/admin/biblio_framework.pl +++ b/admin/biblio_framework.pl @@ -138,7 +138,7 @@ if ($op eq 'add_form') { my $dbh = C4::Context->dbh; # my $frameworkcode=uc($input->param('frameworkcode')); # - unless($frameworkcode) { + if($frameworkcode) { my $sth=$dbh->prepare("delete from marc_tag_structure where frameworkcode=?"); $sth->execute($frameworkcode); $sth=$dbh->prepare("delete from marc_subfield_structure where frameworkcode=?"); -- 2.39.5