Bug 31869: Unable to save thesaurus value to frameworks subfields
authorNick Clemens <nick@bywatersolutions.com>
Wed, 19 Oct 2022 11:17:37 +0000 (11:17 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 24 Oct 2022 14:51:24 +0000 (11:51 -0300)
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 <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
admin/marc_subfields_structure.pl

index a2755df..79232ae 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;