Project

General

Profile

« Previous | Next » 

Revision 6ad4af7d

Added by Andreas Kohlbecker about 5 years ago

ref #8072 better null value handling in BadgeButton and cleaning up debug code

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/component/registration/RegistrationItem.java
251 251
        StringBuffer labelMarkup = new StringBuffer();
252 252
        DateTime registrationDate = null;
253 253

  
254
        if(validationProblemsCount + 1 > 0){
254
        if(validationProblemsCount > 0){
255 255
            getValidationProblemsButton().setEnabled(true);
256 256
            // getMessageButton().addStyleName(RegistrationStyles.STYLE_FRIENDLY_FOREGROUND);
257 257
            getValidationProblemsButton().addClickListener(e -> {
......
272 272
                publishEvent(detailsEvent);
273 273
                }
274 274
            );
275
            getValidationProblemsButton().setCaption(Integer.toString(validationProblemsCount + 1));
275
            getValidationProblemsButton().setCaption(Integer.toString(validationProblemsCount));
276 276
        }
277 277

  
278 278
        if(regDto != null && regDto.isBlocked()){

Also available in: Unified diff