diff artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java @ 220:ecfc33a4ba3d

Bugfix: Creating new ArtifactCollection will create artifact collections with empty - but not null - attributes. artifacts/trunk@1563 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 24 Mar 2011 17:43:45 +0000
parents fc435da7f471
children 91333a41b234
line wrap: on
line diff
--- a/artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java	Thu Mar 24 16:16:51 2011 +0000
+++ b/artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java	Thu Mar 24 17:43:45 2011 +0000
@@ -211,12 +211,14 @@
         Element action     = cr.create("action");
         Element type       = cr.create("type");
         Element collection = cr.create("collection");
+        Element attribute  = cr.create("attribute");
 
         cr.addAttr(type, "name", "create");
         cr.addAttr(collection, "name", name != null ? name : "");
 
         action.appendChild(type);
         type.appendChild(collection);
+        collection.appendChild(attribute);
 
         doc.appendChild(action);
 

http://dive4elements.wald.intevation.org