Project

General

Profile

Revision 8c8c78f4

ID8c8c78f4e5be1422130ad385904c6789eb4ad184
Parent eb75f8eb
Child bbdd609f

Added by Andreas Kohlbecker over 3 years ago

avoide setting the readonly suffix multiple times

View differences:

src/main/java/eu/etaxonomy/vaadin/component/CompositeCustomField.java
289 289

  
290 290
    protected void updateCaptionReadonlyNotice(boolean readOnly) {
291 291
        if(readOnly){
292
            setCaption(getCaption() + READ_ONLY_CAPTION_SUFFIX);
292
            if(!getCaption().contains(READ_ONLY_CAPTION_SUFFIX)){
293
                setCaption(getCaption() + READ_ONLY_CAPTION_SUFFIX);
294
            }
293 295
        } else {
294 296
            setCaption(getCaption().replace(READ_ONLY_CAPTION_SUFFIX, ""));
295 297
        }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)