Project

General

Profile

« Previous | Next » 

Revision 41bd7a99

Added by Katja Luther over 6 years ago

fix deletion of typedesignations in details view

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/association/DerivedUnitTypeDesignationSection.java
10 10

  
11 11
import java.util.ArrayList;
12 12
import java.util.Collection;
13
import java.util.HashSet;
13 14
import java.util.List;
14 15
import java.util.Set;
15 16

  
......
66 67
        }
67 68
        for (SpecimenTypeDesignation specimenTypeDesignation : toRemove) {
68 69
            specimenTypeDesignation.removeType();
69
            Set<TaxonName> names = specimenTypeDesignation.getTypifiedNames();
70
            Set<TaxonName> names;
71
            names = new HashSet();
72
            names.addAll(specimenTypeDesignation.getTypifiedNames());
70 73
            for (TaxonName taxonNameBase : names) {
71 74
                taxonNameBase.removeTypeDesignation(specimenTypeDesignation);
72 75
            }

Also available in: Unified diff