changeset 1526:4a5e65551923

Read river from artifact description in state.chart.river to be able to load the list of locations. flys-client/trunk@3714 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 19 Jan 2012 08:57:58 +0000 (2012-01-19)
parents 27a2a065a963
children 252c22237fe7
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Thu Jan 19 08:54:56 2012 +0000
+++ b/flys-client/ChangeLog	Thu Jan 19 08:57:58 2012 +0000
@@ -1,3 +1,9 @@
+2012-01-19  Raimund Renkert <raimund.renkert@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java:
+	  Read river from artifact description in state.chart.river to be able
+	  to load the list of locations.
+
 2012-01-19  Raimund Renkert <raimund.renkert@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/CollectionView.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java	Thu Jan 19 08:54:56 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java	Thu Jan 19 08:57:58 2012 +0000
@@ -446,7 +446,8 @@
         if (data != null && data.length > 0) {
             for (int i = 0; i < data.length; i++) {
                 DataList dl = data[i];
-                if (dl.getState().equals("state.winfo.river")) {
+                if (dl.getState().equals("state.winfo.river") ||
+                    dl.getState().equals("state.chart.river")) {
                     for (int j = 0; j < dl.size(); j++) {
                         Data d = dl.get(j);
                         DataItem[] di = d.getItems();

http://dive4elements.wald.intevation.org