fix error edit task list
This commit is contained in:
parent
8c20dcaadb
commit
b0369e3174
|
@ -1,7 +1,6 @@
|
|||
package ch.zhaw.gartenverwaltung;
|
||||
|
||||
import ch.zhaw.gartenverwaltung.types.Crop;
|
||||
import ch.zhaw.gartenverwaltung.types.GrowthPhaseType;
|
||||
import ch.zhaw.gartenverwaltung.types.Task;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.fxml.Initializable;
|
||||
|
@ -49,8 +48,12 @@ public class TaskFormularController implements Initializable {
|
|||
taskName_field.setText(task.getName());
|
||||
description_area.setText(task.getDescription());
|
||||
start_datePicker.setValue(task.getStartDate());
|
||||
end_datePicker.setValue(task.getEndDate().get());
|
||||
end_datePicker.setValue(task.getEndDate().orElse(null));
|
||||
if(task.getInterval().orElse(null)!=null) {
|
||||
interval_field.setText(task.getInterval().get().toString());
|
||||
} else {
|
||||
interval_field.setText(null);
|
||||
}
|
||||
}
|
||||
|
||||
private Callback<DatePicker, DateCell> getDayCellFactory() {
|
||||
|
|
Loading…
Reference in New Issue