Project

General

Profile

Revision 990ab6b3

ID990ab6b3aa63a74cd832464a5312cf15a32e9bd4
Parent 57bddc87
Child fdce845e

Added by Andreas Kohlbecker about 1 year ago

ref #8059 using the cached registration data in case the reg is new and unpersisted

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkingsetPresenter.java
884 884

  
885 885
        UUID registrationUuid = event.getIdentifier();
886 886

  
887
        RegistrationDTO regDto = getWorkingSetService().loadDtoByUuid(registrationUuid);
887
        RegistrationDTO regDto = workingset.getRegistrationDTO(registrationUuid).get();
888 888
        if(event.getProperty().equals(RegistrationItem.BLOCKED_BY)){
889 889

  
890
            Set<RegistrationDTO> blockingRegs = getWorkingSetService().loadBlockingRegistrations(registrationUuid);
890
            Set<RegistrationDTO> blockingRegs;
891
            if(regDto.registration().isPersited()){
892
                blockingRegs = getWorkingSetService().loadBlockingRegistrations(registrationUuid);
893
            } else {
894
                blockingRegs = new HashSet<RegistrationDTO>(getWorkingSetService().makeDTOs(regDto.registration().getBlockedBy()));
895
            }
891 896
            getView().setBlockingRegistrations(registrationUuid, blockingRegs);
892 897
        } else if(event.getProperty().equals(RegistrationItem.MESSAGES)){
893 898

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)