Changeset 4742


Ignore:
Timestamp:
2003-06-20T14:04:22+12:00 (21 years ago)
Author:
sjboddie
Message:

Bug fix in recent change removing need for defaultindex option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/mggdbmsource.cpp

    r4738 r4742  
    7878  if (defaultindex.empty()) {
    7979    // use first index in map as default if no default is set explicitly
    80     text_tarray fromarray;
    81     indexmap.getfromarray(fromarray);
    82     if (fromarray.size()) {
    83       defaultindex = fromarray[0];
     80    text_tarray toarray;
     81    indexmap.gettoarray(toarray);
     82    if (toarray.size()) {
     83      defaultindex = toarray[0];
    8484    }
    8585  }
     
    8787  if (defaultsubcollection.empty()) {
    8888    // use first subcollection in map as default if no default is set explicitly
    89     text_tarray fromarray;
    90     subcollectionmap.getfromarray(fromarray);
    91     if (fromarray.size()) {
    92       defaultsubcollection = fromarray[0];
     89    text_tarray toarray;
     90    subcollectionmap.gettoarray(toarray);
     91    if (toarray.size()) {
     92      defaultsubcollection = toarray[0];
    9393    }
    9494  }
     
    9696  if (defaultlanguage.empty()) {
    9797    // use first language in map as default if no default is set explicitly
    98     text_tarray fromarray;
    99     languagemap.getfromarray(fromarray);
    100     if (fromarray.size()) {
    101       defaultlanguage = fromarray[0];
     98    text_tarray toarray;
     99    languagemap.gettoarray(toarray);
     100    if (toarray.size()) {
     101      defaultlanguage = toarray[0];
    102102    }
    103103  }
Note: See TracChangeset for help on using the changeset viewer.