From af03a599ac0bc5303c493c150385dd55293641a4 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 19 Oct 2022 11:17:37 +0000 Subject: [PATCH] Bug 31869: Unable to save thesaurus value to frameworks subfields This patch correct a typo authtypecodes for authtypecode To test: 1. Edit e.g. default frameworks subfield 100$a 2. Add or change fields thesaurus value 3. Save your changes => note that on subfield listing there is no mention that 100$a is linked to any thesaurus => if you edit 100$a thesaurus input is empty 4. Apply patch 5. Edit subfield 100$a and set a thesaurus value 6. Confirm it saves and displays correctly Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- admin/marc_subfields_structure.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/marc_subfields_structure.pl b/admin/marc_subfields_structure.pl index a2755df645..79232aeceb 100755 --- a/admin/marc_subfields_structure.pl +++ b/admin/marc_subfields_structure.pl @@ -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; -- 2.20.1