Project

General

Profile

« Previous | Next » 

Revision 5a9bfdf8

Added by Katja Luther about 4 years ago

ref #8832: fix deselction of status when changing area in distribution detail element

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/combo/term/TermComboElement.java
42 42

  
43 43
	private ArrayList<T> terms;
44 44

  
45
	private Comparator<T> termComparator;
45
	public ArrayList<T> getTerms() {
46
        return terms;
47
    }
48

  
49
    private Comparator<T> termComparator;
46 50

  
47 51
	public Comparator<T> getTermComparator() {
48 52
		return termComparator;
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/DistributionDetailElement.java
122 122

  
123 123
	        if (selection_namedArea.getEntity()!= null){
124 124
	            List<DefinedTermBase> inputList = getStatusListForArea(selection_namedArea.getEntity());
125
	            //combo_presenceAbsence.removeElements();
126
	            combo_presenceAbsence.setTerms(inputList);
125
	            if (!inputList.equals(combo_presenceAbsence.getTerms())){
126
	                combo_presenceAbsence.setTerms(inputList);
127
	            }
127 128
	        }
128 129

  
129 130
		}else if(eventSource == combo_presenceAbsence){

Also available in: Unified diff