comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/PeriodPanel.java @ 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 156980fb3cb9
children 97365575da6f
comparison
equal deleted inserted replaced
8622:124efb3eea94 8623:289486a43be8
93 93
94 layout.addMember(title); 94 layout.addMember(title);
95 layout.addMember(form); 95 layout.addMember(form);
96 96
97 /* Try to find default values for the periods */ 97 /* Try to find default values for the periods */
98 Data start = getData(data.getAll(), "start"); 98 Data start = getData(data.getAll(), startName);
99 Data end = getData(data.getAll(), "end"); 99 Data end = getData(data.getAll(), endName);
100 if (start == null || end == null) { 100 if (start.getItems() == null || end.getItems() == null) {
101 return layout; 101 return layout;
102 } 102 }
103 103
104 for (DataItem item: start.getItems()) { 104 for (DataItem item: start.getItems()) {
105 if (item.getLabel().equals("default")) { 105 if (item.getLabel().equals("default")) {

http://dive4elements.wald.intevation.org