[Koha-patches] [PATCH] kohabug 2100 - allow deletion of non-default MARC framework

Galen Charlton galen.charlton at liblime.com
Thu May 15 00:09:41 CEST 2008


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.
---
 admin/biblio_framework.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/admin/biblio_framework.pl b/admin/biblio_framework.pl
index 1f345b7..3837ca5 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=?");
-- 
1.5.5.rc0.16.g02b00




More information about the Koha-patches mailing list