Repaired field name thinko for config.record_attr_index_norm_map
authorBill Erickson <berick@esilibrary.com>
Tue, 6 Sep 2011 15:28:00 +0000 (11:28 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 6 Sep 2011 15:28:00 +0000 (11:28 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm

index 5f8f74a..f5cb67d 100644 (file)
@@ -286,7 +286,7 @@ sub initialize_filter_normalizers {
     my $tree = shift; # open-ils.cstore.direct.config.record_attr_index_norm_map.search.atomic { "id" : { "!=" : null } }, { "flesh" : 1, "flesh_fields" : { "crainm" : ["norm"] }, "order_by" : [{ "class" : "crainm", "field" : "pos" }] }
 
     for my $crainm ( @$tree ) {
-        __PACKAGE__->add_filter_normalizer( $crainm->name, $crainm->norm->func, OpenSRF::Utils::JSON->JSON2perl($crainm->params) );
+        __PACKAGE__->add_filter_normalizer( $crainm->attr, $crainm->norm->func, OpenSRF::Utils::JSON->JSON2perl($crainm->params) );
     }
 }