Project

General

Profile

« Previous | Next » 

Revision 79bd864f

Added by Katja Luther over 4 years ago

ref #8389: revert disabling of allowOverride for default selection

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java
496 496
    public static NomenclaturalCode getPreferredNomenclaturalCode(String preferenceKeyNomenclaturalCode) {
497 497

  
498 498
        for (NomenclaturalCode code : NomenclaturalCodeHelper.getAllCodes()) {
499
            if (getPreferenceKey(code).equals(preferenceKeyNomenclaturalCode)) {
499
            if (getPreferenceKey(code).equals(preferenceKeyNomenclaturalCode) || code.getKey().equals(preferenceKeyNomenclaturalCode)) {
500 500
                return code;
501 501
            }
502 502
        }
......
1372 1372
            config.setNameRelationsSectionActivated(getValue(sectionMap,"nameRelation"));
1373 1373
            config.setHybridActivated(getValue(sectionMap,"hybrid"));
1374 1374
            config.setNameApprobiationActivated(getValue(sectionMap, "nameApproviation"));
1375
        }else {
1376
            return null;
1375 1377
        }
1376 1378
        return config;
1377 1379
    }

Also available in: Unified diff