Revision f6d73035
Added by Andreas Kohlbecker almost 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkingsetPresenter.java | ||
---|---|---|
614 | 614 |
|
615 | 615 |
@EventBusListenerMethod |
616 | 616 |
public void onEntityChangeEvent(EntityChangeEvent event){ |
617 |
|
|
617 | 618 |
if(workingset == null){ |
618 | 619 |
return; |
619 | 620 |
} |
... | ... | |
627 | 628 |
refreshView(true); |
628 | 629 |
} |
629 | 630 |
} else |
630 |
if(TaxonName.class.isAssignableFrom(event.getEntityType())){ |
|
631 |
if(TaxonName.class.isAssignableFrom(event.getEntityType()) && isFromOwnView(event)){
|
|
631 | 632 |
if(event.getType().equals(EntityChangeEvent.Type.CREATED)){ |
632 | 633 |
// new name! create a blocking registration |
633 | 634 |
Stack<EditorActionContext>context = ((AbstractPopupEditor)event.getSourceView()).getEditorActionContext(); |
... | ... | |
640 | 641 |
getRepo().getRegistrationService().saveOrUpdate(registration); |
641 | 642 |
logger.debug("Blocking registration created"); |
642 | 643 |
} else { |
643 |
logger.debug("Nn blocking registration, since a new name for a new registration has been created"); |
|
644 |
logger.debug("Non blocking registration, since a new name for a new registration has been created");
|
|
644 | 645 |
} |
645 | 646 |
} |
646 | 647 |
if(workingset.getRegistrationDTOs().stream().anyMatch(reg -> |
Also available in: Unified diff
supressing name creation events not coming from own view