changeset 1329:b18b32269a3f

Set the correct index when saving changed attributes. flys-client/trunk@2973 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 14 Oct 2011 13:35:21 +0000
parents ab93960ac2fb
children ece7d9484574
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/server/CollectionItemAttributeServiceImpl.java
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Fri Oct 14 12:56:31 2011 +0000
+++ b/flys-client/ChangeLog	Fri Oct 14 13:35:21 2011 +0000
@@ -1,3 +1,8 @@
+2011-10-14  Raimund Renkert <raimund.renkert@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/server/CollectionItemAttributeServiceImpl.java:
+	  Set the correct index when saving changed attributes.
+
 2011-10-14  Ingo Weinzierl <ingo@intevation.de>
 
 	flys/issue288 (ÜSK: Legende hinzufügen)
--- a/flys-client/src/main/java/de/intevation/flys/client/server/CollectionItemAttributeServiceImpl.java	Fri Oct 14 12:56:31 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/CollectionItemAttributeServiceImpl.java	Fri Oct 14 13:35:21 2011 +0000
@@ -174,7 +174,7 @@
             Element theme = creator.create("theme");
             theme.setAttribute("name", s.getName());
             theme.setAttribute("facet", s.getFacet());
-            theme.setAttribute("index", String.valueOf(i));
+            theme.setAttribute("index", String.valueOf(s.getIndex()));
             for (int j = 0; j < s.getNumSettings(); j++) {
                 StyleSetting set = s.getSetting(j);
                 Element field = creator.create("field");

http://dive4elements.wald.intevation.org