Bug 32351: Fix CourseItems.t
[koha-ffzg.git] / admin / marc_subfields_structure.pl
index a2755df..2d10c41 100755 (executable)
@@ -229,7 +229,7 @@ elsif ( $op eq 'add_validate' ) {
         my $tab              = $input->param("tab_$id");
         my $seealso          = $input->param("seealso_$id");
         my $authorised_value = $input->param("authorised_value_$id");
-        my $authtypecode     = $input->param("authtypecodes_$id");
+        my $authtypecode     = $input->param("authtypecode_$id");
         my $value_builder    = $input->param("value_builder_$id");
         my $hidden = $input->param("hidden_$id");
         my $isurl  = $input->param("isurl_$id") ? 1 : 0;
@@ -297,7 +297,6 @@ elsif ( $op eq 'add_validate' ) {
     }
     $cache->clear_from_cache("MarcStructure-0-$frameworkcode");
     $cache->clear_from_cache("MarcStructure-1-$frameworkcode");
-    $cache->clear_from_cache("default_value_for_mod_marc-");
     $cache->clear_from_cache("MarcSubfieldStructure-$frameworkcode");
     $cache->clear_from_cache("MarcCodedFields-$frameworkcode");
 
@@ -336,7 +335,6 @@ elsif ( $op eq 'delete_confirmed' ) {
 
     $cache->clear_from_cache("MarcStructure-0-$frameworkcode");
     $cache->clear_from_cache("MarcStructure-1-$frameworkcode");
-    $cache->clear_from_cache("default_value_for_mod_marc-");
     $cache->clear_from_cache("MarcSubfieldStructure-$frameworkcode");
     $cache->clear_from_cache("MarcCodedFields-$frameworkcode");
     print $input->redirect("/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=$tagfield&frameworkcode=$frameworkcode");