Project

General

Profile

« Previous | Next » 

Revision d7016168

Added by Andreas Kohlbecker over 9 years ago

fixing prefer specific distributions for #3904 (EuroMed: Implement filtering rules for Distributions), status=null was ereoneously preferred

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/utility/DescriptionUtility.java
237 237
                preferred.add(distribution);
238 238
            } else {
239 239
                if(distribution.getStatus() == null){
240
                    // highestStatus is considered higher if
241
                    // highestStatus != null && distribution.getStatus() == null
242
                    compareResult = highestStatus != null ? -1 : 0;
240
                    continue;
243 241
                } else {
244 242
                    compareResult = highestStatus.compareTo(distribution.getStatus());
245 243
                }

Also available in: Unified diff