Revision 5668135a
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkingsetPresenter.java | ||
---|---|---|
507 | 507 |
if(event.getReason().equals(Reason.SAVE)){ |
508 | 508 |
refreshView(true); |
509 | 509 |
} else if(event.getReason().equals(Reason.CANCEL)){ |
510 |
// clean up |
|
511 |
if(newRegistrationDTOWithExistingName != null){ |
|
512 |
getRegistrationStore().deleteBean(newRegistrationDTOWithExistingName.registration(), (AbstractView) getView()); |
|
513 |
} |
|
510 |
// noting to do |
|
514 | 511 |
} |
515 |
// set newRegistrationDTOWithExistingName NULL in any case |
|
516 | 512 |
newRegistrationDTOWithExistingName = null; |
517 | 513 |
} else if(event.getPopup() instanceof NameTypeDesignationPopupEditor){ |
518 | 514 |
if(event.getReason().equals(Reason.SAVE)){ |
... | ... | |
529 | 525 |
txstate.commit(); |
530 | 526 |
session.close(); |
531 | 527 |
|
532 |
newNameTypeDesignationTarget = null; |
|
533 | 528 |
refreshView(true); |
534 | 529 |
} else if(event.getReason().equals(Reason.CANCEL)){ |
535 | 530 |
// noting to do |
536 | 531 |
} |
532 |
newNameTypeDesignationTarget = null; |
|
537 | 533 |
} |
538 | 534 |
// ignore other editors |
539 | 535 |
} |
Also available in: Unified diff
no longer deleting registration when typedesignation editors are canceled