[PATCH 2 of 9] Actually check if there are no items instead of no data
Wald Commits
scm-commit at wald.intevation.org
Thu Mar 26 12:11:56 CET 2015
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1427364408 -3600
# Node ID 289486a43be8ba4d1a62b67bf28fe184dc3ef3f1
# Parent 124efb3eea94350e68959c5844072b3d0e6abbf2
Actually check if there are no items instead of no data.
diff -r 124efb3eea94 -r 289486a43be8 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/PeriodPanel.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/PeriodPanel.java Thu Mar 26 11:06:13 2015 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/PeriodPanel.java Thu Mar 26 11:06:48 2015 +0100
@@ -95,9 +95,9 @@
layout.addMember(form);
/* Try to find default values for the periods */
- Data start = getData(data.getAll(), "start");
- Data end = getData(data.getAll(), "end");
- if (start == null || end == null) {
+ Data start = getData(data.getAll(), startName);
+ Data end = getData(data.getAll(), endName);
+ if (start.getItems() == null || end.getItems() == null) {
return layout;
}
More information about the Dive4Elements-commits
mailing list