From: erickson Date: Mon, 9 Jun 2008 16:26:59 +0000 (+0000) Subject: moved key attribute from the set of KeyAttrs to a ValueAttr. XML::Simple as of versi... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b74bc8fadbfab888bc5d1e783f259cdf0ae359eb;p=Evergreen.git moved key attribute from the set of KeyAttrs to a ValueAttr. XML::Simple as of version 2.18 forces uniquesness on KeyAttrs git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2_2@9791 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/Fieldmapper.pm b/Open-ILS/src/perlmods/OpenILS/Utils/Fieldmapper.pm index d8a05dd70d..e34c9a2838 100644 --- a/Open-ILS/src/perlmods/OpenILS/Utils/Fieldmapper.pm +++ b/Open-ILS/src/perlmods/OpenILS/Utils/Fieldmapper.pm @@ -47,7 +47,7 @@ sub import { # parse the IDL ... my $file = $args{IDL} || OpenSRF::Utils::SettingsClient->new->config_value( 'IDL' ); - my $idl = XMLin( $file, ForceArray => 0, KeyAttr => ['name', 'key', 'id'] )->{class}; + my $idl = XMLin( $file, ForceArray => 0, KeyAttr => ['name', 'id'], ValueAttr => {link =>'key'} )->{class}; for my $c ( keys %$idl ) { next unless ($idl->{$c}{'oils_obj:fieldmapper'}); my $n = 'Fieldmapper::'.$idl->{$c}{'oils_obj:fieldmapper'};