changeset 8623:289486a43be8

Actually check if there are no items instead of no data.
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 26 Mar 2015 11:06:48 +0100
parents 124efb3eea94
children 4f702ea1fd3a
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/PeriodPanel.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
         }
 

http://dive4elements.wald.intevation.org