ref #9772: fix handling when more than 1 unit is choosable - continue
authorKatja Luther <k.luther@bgbm.org>
Thu, 23 Sep 2021 11:56:05 +0000 (13:56 +0200)
committerKatja Luther <k.luther@bgbm.org>
Thu, 23 Sep 2021 11:56:05 +0000 (13:56 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/quantitative/QuantitativeDataDialogComposite.java

index c6f2348ea332790fbae44e4f13d5340187380df8..61257987e376296970b5cde5c1e9bc579a4a5309 100644 (file)
@@ -106,6 +106,8 @@ public class QuantitativeDataDialogComposite extends Composite {
                 unitCombo.select(unitMap.get(editorValue.getMeasurementUnit()));
             }else{
                 unitCombo.select(0);
+                String name = unitCombo.getText();
+                editorValue.setMeasurementUnit((TermDto)unitCombo.getData(name));
             }
 
             unitCombo.addSelectionListener(new SelectionAdapter(){