Changeset 11996


Ignore:
Timestamp:
2006-07-04T15:08:36+12:00 (18 years ago)
Author:
davidb
Message:

Extra tweak to code (if statement added) to help cope with the situation of
a collection being built with no documents.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/mgppbuilder.pm

    r11965 r11996  
    732732        push (@indexfields, "allfields");
    733733    } else {
    734         push (@indexfieldmap, "$field\-\>$self->{'buildproc'}->{'indexfieldmap'}->{$field}");
    735         push (@indexfields, "$field");
     734
     735        my $ifm = $self->{'buildproc'}->{'indexfieldmap'};
     736
     737        if (defined $ifm->{$field}) {
     738        push (@indexfieldmap, "$field\-\>$ifm->{$field}");
     739        push (@indexfields, "$field");
     740        }
     741
    736742       
    737743    }
Note: See TracChangeset for help on using the changeset viewer.