Project

General

Profile

Revision b19e08c1

IDb19e08c16ecd56b8e2b425975573c07ddd006a6b
Parent b0127ea9
Child 8cc448f7

Added by Katja Luther 9 months ago

fix #8825: fix creation of default taxon feature tree

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java
1896 1896

  
1897 1897
        CdmPreferenceCache cache = CdmPreferenceCache.instance();
1898 1898
        CdmPreference pref = cache.get(PreferencePredicate.TaxonFeatures.getKey());
1899
        List<Feature> terms;
1899
        List<Feature> terms = null;
1900 1900
        boolean override = PreferencesUtil.getBooleanValue(PreferencesUtil.createOverridePreferenceString(PreferencePredicate.TaxonFeatures.getKey()));
1901 1901
        List<UUID> uuids = PreferencesUtil.createUUIDListFromStringPref(PreferencePredicate.TaxonFeatures.getKey(), false);
1902
        terms = CdmStore.getTermManager().getTerms(uuids, Feature.class);
1902
        if (!uuids.isEmpty()){
1903
            terms = CdmStore.getTermManager().getTerms(uuids, Feature.class);
1904
        }
1903 1905
        if (terms == null || terms.isEmpty()){
1904 1906
            terms= CdmStore.getTermManager().getPreferredTerms(TermType.Feature);
1905 1907
            TermVocabulary nameVocabulary = CdmStore.getService(IVocabularyService.class).load(VocabularyEnum.NameFeature.getUuid());

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)