Revision 13d24007
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/name/TaxonNameEditorPresenter.java | ||
---|---|---|
332 | 332 |
if(event.getPopup() == referenceEditorPopup){ |
333 | 333 |
if(event.getReason() == Reason.SAVE){ |
334 | 334 |
|
335 |
Reference modifiedReference = referenceEditorPopup.getBean(); |
|
336 |
|
|
337 |
// the bean contained in the popup editor is not yet updated at this point. |
|
338 |
// so re reload it using the uuid since new beans might not have an Id at this point. |
|
339 |
// modifiedReference = getRepo().getReferenceService().load(modifiedReference.getUuid(), Arrays.asList("inReference")); |
|
335 |
getCache().load(referenceEditorPopup.getBean()); |
|
340 | 336 |
getView().getNomReferenceCombobox().reload(); // refreshSelectedValue(modifiedReference); |
341 |
|
|
337 |
getView().getCombinationAuthorshipField().discard(); //refresh from the datasource |
|
338 |
getView().updateAuthorshipFields(); |
|
342 | 339 |
} |
343 | 340 |
|
344 | 341 |
referenceEditorPopup = null; |
345 | 342 |
} |
346 | 343 |
if(event.getPopup() == basionymNamePopup){ |
347 | 344 |
if(event.getReason() == Reason.SAVE){ |
348 |
// TaxonName modifiedTaxonName = basionymNamePopup.getBean(); |
|
349 |
// modifiedTaxonName = getRepo().getNameService().load(modifiedTaxonName.getUuid(), BASIONYM_INIT_STRATEGY);
|
|
345 |
|
|
346 |
getCache().load(basionymNamePopup.getBean());
|
|
350 | 347 |
((ReloadableSelect)basionymSourceField).reload(); |
348 |
getView().getBasionymAuthorshipField().discard(); //refresh from the datasource |
|
349 |
getView().getExBasionymAuthorshipField().discard(); //refresh from the datasource |
|
351 | 350 |
getView().updateAuthorshipFields(); |
352 | 351 |
|
353 | 352 |
} |
Also available in: Unified diff
ref #7344 updating presenter entity caches with beans modified in popup editors and refreshing teamOrPerson Fields