|
17 | 17 | *******************************************************************************/ |
18 | 18 | package de.symeda.sormas.ui.samples; |
19 | 19 |
|
20 | | -import java.util.Collection; |
21 | | -import java.util.Date; |
22 | | - |
23 | 20 | import com.vaadin.navigator.Navigator; |
24 | 21 | import com.vaadin.server.Page; |
25 | 22 | import com.vaadin.server.Sizeable.Unit; |
|
37 | 34 | import com.vaadin.ui.themes.ValoTheme; |
38 | 35 | import com.vaadin.v7.data.Buffered.SourceException; |
39 | 36 | import com.vaadin.v7.data.Validator.InvalidValueException; |
40 | | - |
41 | 37 | import de.symeda.sormas.api.Disease; |
42 | 38 | import de.symeda.sormas.api.FacadeProvider; |
43 | 39 | import de.symeda.sormas.api.caze.CaseReferenceDto; |
|
70 | 66 | import de.symeda.sormas.ui.utils.DateFormatHelper; |
71 | 67 | import de.symeda.sormas.ui.utils.VaadinUiUtil; |
72 | 68 |
|
| 69 | +import java.util.Collection; |
| 70 | +import java.util.Date; |
| 71 | + |
73 | 72 | public class SampleController { |
74 | 73 |
|
75 | 74 | public SampleController() { |
@@ -151,6 +150,7 @@ private void saveSample(SampleCreateForm createForm) { |
151 | 150 | final PathogenTestDto pathogenTest = PathogenTestDto.build(newSample, UserProvider.getCurrent().getUser()); |
152 | 151 | pathogenTest.setLab(newSample.getLab()); |
153 | 152 | pathogenTest.setTestResult(testResult); |
| 153 | + newSample.setPathogenTestResult(testResult); |
154 | 154 | final Boolean testResultVerified = (Boolean) createForm.getField(PathogenTestDto.TEST_RESULT_VERIFIED).getValue(); |
155 | 155 | pathogenTest.setTestResultVerified(testResultVerified); |
156 | 156 | pathogenTest.setTestType((PathogenTestType) (createForm.getField(PathogenTestDto.TEST_TYPE)).getValue()); |
|
0 commit comments