Ignore:
Timestamp:
2019-07-29T11:59:24+12:00 (5 years ago)
Author:
kjdon
Message:

use the new get_or_create_shortname instead of create_shortname

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/solr/trunk/src/perllib/solrbuilder.pm

    r33359 r33370  
    474474        if (!defined $buildproc->{'indexfieldmap'}->{$field})
    475475        {
    476           my $shortname = '';
    477           if (defined $buildproc->{'fieldnamemap'}->{$field})
    478           {
    479             $shortname = $buildproc->{'fieldnamemap'}->{$field};
    480           }
    481           else
    482           {
    483             $shortname = $buildproc->create_shortname($field);
    484         $buildproc->{'fieldnamemap'}->{$field} = $shortname;
    485         $buildproc->{'fieldnamemap'}->{$shortname} = 1;
    486           }
     476        my $shortname = $buildproc->get_or_create_shortname($field);
    487477          $buildproc->{'indexfieldmap'}->{$field} = $shortname;
    488478          $buildproc->{'indexfieldmap'}->{$shortname} = 1;
Note: See TracChangeset for help on using the changeset viewer.