Project

General

Profile

« Previous | Next » 

Revision db1db901

Added by Andreas Kohlbecker over 5 years ago

fix #7831 excluding the current name from the WeaklyRelatedEntityCombobox for genus name and specific epithet

View differences:

src/main/java/eu/etaxonomy/vaadin/component/WeaklyRelatedEntityCombobox.java
189 189

  
190 190

  
191 191
    /**
192
     * {@inheritDoc}
192
     * sets the selection to the <code>newFieldValue</code> only if the value can
193
     * be provided by the FilterablePagingProvider
194
     *
193 195
     */
194 196
    @Override
195 197
    public void setValue(String newFieldValue) throws com.vaadin.data.Property.ReadOnlyException, ConversionException {
196 198
        lazySelect.refresh();
197
        lazySelect.setValue(newFieldValue);
199
        if(lazySelect.getOptions().contains(newFieldValue)){
200
            lazySelect.setValue(newFieldValue);
201
        }
198 202
        lazySelect.markAsDirty();
199 203
    }
200 204

  

Also available in: Unified diff