Project

General

Profile

Revision 07bbd695

ID07bbd69598e674f905a5720f10e0e35e0e39aef9
Parent 82006e78
Child ef59fcf5

Added by Andreas Kohlbecker 5 months ago

ref #7900 comitting writable transaction before loading the registration working set

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkingsetPresenter.java
489 489
            if(newNameForRegistrationPopupEditor != null && event.getPopup().equals(newNameForRegistrationPopupEditor)){
490 490
                if(event.getReason().equals(Reason.SAVE)){
491 491
                    try {
492
                        // TODO move into a service class --------------
492 493
                        TransactionStatus txStatus = getRepo().startTransaction();
493 494
                        UUID taxonNameUuid = newNameForRegistrationPopupEditor.getBean().getUuid();
494 495
                        if(newNameForRegistrationPopupEditor.getBean().cdmEntity().isPersited()){
......
504 505
                            newNameBlockingRegistrations.clear();
505 506
                        }
506 507
                        // reload workingset into current session
508
                        getRepo().commitTransaction(txStatus);
509
                        // --------------------------------------------------
507 510
                        loadWorkingSet(workingset.getCitationUuid());
508 511
                        workingset.add(reg);
509
                        getRepo().commitTransaction(txStatus);
510 512
                    } finally {
511 513
                        getRepo().getSession().clear(); // #7702
512 514
                        refreshView(true);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)