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 <jmf@liblime.com>
This commit is contained in:
Galen Charlton 2008-05-14 17:09:41 -05:00 committed by Joshua Ferraro
parent 0905b6b747
commit a086de137a
1 changed files with 1 additions and 1 deletions

View File

@ -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=?");