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:
parent
0905b6b747
commit
a086de137a
|
|
@ -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=?");
|
||||
|
|
|
|||
Loading…
Reference in New Issue