Project

General

Profile

« Previous | Next » 

Revision c9bb625e

Added by Katja Luther over 4 years ago

ref #8385: fix nomenclatural code preference page

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/NomenclaturalCodeHelper.java
42 42
	 */
43 43
	public static List<NomenclaturalCode> getSupportedCodes() {
44 44
		List<NomenclaturalCode> supportedCodes = new ArrayList<NomenclaturalCode>();
45
		NomenclaturalCode nomenclaturalCode =PreferencesUtil.getPreferredNomenclaturalCode();
45 46
		for (NomenclaturalCode code : getAllCodes()) {
46 47
			if (isSupported(code)) {
47
			    if (PreferencesUtil.getPreferredNomenclaturalCode().equals(code)){
48
			    if (nomenclaturalCode != null && nomenclaturalCode.equals(code)){
48 49
			        supportedCodes.add(0, code);
49 50
			    }else{
50 51
			        supportedCodes.add(code);

Also available in: Unified diff