Project

General

Profile

Revision 11493d8f

ID11493d8f4ece91682652ed4b4f7c8a186e0b4588
Parent 3b4bcfb5
Child 1b30495e

Added by Andreas Kohlbecker over 1 year ago

TextFieldNFix trim empty string to null

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/component/TextFieldNFix.java
96 96
    protected void setInternalValue(String newValue) {
97 97
        if(newValue != null){
98 98
            newValue = newValue.trim();
99
            if(newValue.isEmpty()){
100
                newValue = null;
101
            }
99 102
        }
100 103
        super.setInternalValue(newValue);
101 104
    }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)