Project

General

Profile

« Previous | Next » 

Revision 72ad71d3

Added by Andreas Kohlbecker almost 6 years ago

ref #7546 preventing from adding a second type only registration before the first one has a typification

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkingsetPresenter.java
549 549
//            getView().setWorkingset(workingset);
550 550
            refreshView(reloadWorkingSet);
551 551
            getView().getAddExistingNameRegistrationButton().setEnabled(false);
552
            getView().getAddExistingNameRegistrationButton().setDescription("You first need to add a type designation to the previously created registration.");
552
            if(newRegistrationDTOWithExistingName.registration().getName() == null){
553
                getView().getAddExistingNameCombobox().setEnabled(false);
554
                getView().getAddNewNameRegistrationButton().setEnabled(false);
555
                getView().getAddNewNameRegistrationButton().setDescription("You first need to add a type designation to the previously created registration.");
556
                getView().getAddExistingNameCombobox().setDescription("You first need to add a type designation to the previously created registration.");
557
                getView().getAddExistingNameRegistrationButton().setDescription("You first need to add a type designation to the previously created registration.");
558
            }
553 559
        } else {
554 560
            logger.error("Seletced name is NULL");
555 561
        }

Also available in: Unified diff