Project

General

Profile

Revision 92e2617f

ID92e2617f0b8a26481df1cf034be9561c60b74eed
Parent fa63b6b4
Child ac37cbca

Added by Andreas Müller almost 3 years ago

ref #3474 try to fix CCE when moving a term in the country vocabulary

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/OrderedTermVocabulary.java
231 231
		int orderInd = lowerTerm.orderIndex;
232 232
		termToBeAdded.orderIndex = orderInd;
233 233
		//increment all orderIndexes of terms below
234
		Iterator<T> iterator = terms.iterator();
235
		while(iterator.hasNext()){
236
			T term = iterator.next();
237
			if (term.orderIndex >= orderInd){  //should always be true
234
		Set<T> myTerms = getSortedSetOfTerms();
235
		for(T term : myTerms){
236
		    if (term.orderIndex >= orderInd){  //should always be true
238 237
				term.orderIndex++;
239 238
			}
240 239
		}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)