feat/kindErstellen #9

Merged
PBS2H21ASH merged 23 commits from feat/kindErstellen into stable 2023-02-05 20:40:12 +01:00
Showing only changes of commit 1dadd23ffb - Show all commits

View File

@ -17,7 +17,6 @@ public class OrderHistoryController {
List<String> orders = new ArrayList<>();
for (Child child : children) {
System.out.println(child.getId());
List<String> selections = Database.select("food_selection", new String[] { "childid" }, new String[] { String.valueOf(child.getId()) });
for (String selection : selections) {
String[] selectionParts = selection.split(":");
@ -30,6 +29,7 @@ public class OrderHistoryController {
}
Collections.sort(orders);
Collections.reverse(orders);
for(String order : orders){
listView.getItems().add(order);
}