From b74bc8fadbfab888bc5d1e783f259cdf0ae359eb Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 9 Jun 2008 16:26:59 +0000 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/OpenILS/Utils/Fieldmapper.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'}; -- 2.11.0