Revision e5dfaec8
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/name/SpecimenTypeDesignationWorkingsetEditorPresenter.java | ||
---|---|---|
127 | 127 |
// This method must go again into the presenter !!!! |
128 | 128 |
logger.info("Basing all typeDesignations on a new fieldUnit"); |
129 | 129 |
} |
130 |
cache.put(workingSetDto.getOwner()); |
|
130 |
// need to use load but put see #7214 |
|
131 |
cache.load(workingSetDto.getOwner()); |
|
131 | 132 |
rootEntities.add(workingSetDto.getOwner()); |
132 | 133 |
} else { |
133 | 134 |
// create a new workingset, for a new fieldunit which is the base for the workingset |
134 | 135 |
workingSetDto = specimenTypeDesignationWorkingSetService.create(idset.registrationId, idset.publicationId, idset.typifiedNameId); |
135 |
cache.put(workingSetDto.getOwner()); |
|
136 |
// need to use load but put see #7214 |
|
137 |
cache.load(workingSetDto.getOwner()); |
|
136 | 138 |
rootEntities.add(workingSetDto.getOwner()); |
137 | 139 |
} |
138 | 140 |
|
... | ... | |
318 | 320 |
public void onCollectionEvent(EntityChangeEvent event){ |
319 | 321 |
|
320 | 322 |
Collection newCollection = getRepo().getCollectionService().load(event.getEntityId(), Arrays.asList(new String[]{"$.institute"})); |
321 |
cache.getFromCache(newCollection);
|
|
323 |
cache.load(newCollection);
|
|
322 | 324 |
|
323 | 325 |
for( CollectionRowItemCollection row : collectionPopuEditorSourceRows) { |
324 | 326 |
ToOneRelatedEntityCombobox<Collection> combobox = row.getComponent(ToOneRelatedEntityCombobox.class, 2); |
... | ... | |
349 | 351 |
public void onReferenceEvent(EntityChangeEvent event){ |
350 | 352 |
|
351 | 353 |
Reference newRef = getRepo().getReferenceService().load(event.getEntityId(), Arrays.asList(new String[]{"$"})); |
352 |
cache.getFromCache(newRef);
|
|
354 |
cache.load(newRef);
|
|
353 | 355 |
|
354 | 356 |
for( CollectionRowItemCollection row : collectionPopuEditorSourceRows) { |
355 | 357 |
ToOneRelatedEntityCombobox<Collection> combobox = row.getComponent(ToOneRelatedEntityCombobox.class, 6); |
Also available in: Unified diff
ref #7214 fixing wrong usage of cacher methods