Project

General

Profile

« Previous | Next » 

Revision 91e53109

Added by Andreas Kohlbecker over 3 years ago

ref #9290 SpecimenTypeDesignationEditor now using designation reference correctly

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/name/SpecimenTypeDesignationWorkingsetEditorPresenter.java
150 150
                rootEntities.add(workingSetDto.getOwner());
151 151
            } else {
152 152
                // create a new workingset, for a new fieldunit which is the base for the workingset
153
                workingSetDto = specimenTypeDesignationWorkingSetService.create(idset.registrationUuid, idset.publicationUuid, idset.typifiedNameUuid);
153
                workingSetDto = specimenTypeDesignationWorkingSetService.create(idset.registrationUuid, idset.typifiedNameUuid);
154 154
                // need to use load but put see #7214
155 155
                Registration registration = workingSetDto.getOwner();
156 156
                cache.load(registration);
157
                if(registration.getName() == null && (registration.getTypeDesignations() == null || registration.getTypeDesignations().isEmpty())){
158
                    // need to add the citation to the cache when there is no name or typedesignation in the registry which would bring the citation otherwise.
159
                    cache.load(workingSetDto.getCitation());
160
                }
161 157
                cache.load(workingSetDto.getTypifiedName());
162 158
                rootEntities.add(workingSetDto.getOwner());
163 159
                rootEntities.add(workingSetDto.getTypifiedName());
164
                rootEntities.add(workingSetDto.getCitation());
160

  
165 161
            }
166 162

  
167 163
        } else {

Also available in: Unified diff