changeset 7888:49daff6c11ca

Use the new way of building static facets if such facets exist else ignore this way. Makes loading of datacage facets work again!
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 19 May 2014 12:47:50 +0200
parents 9c118aeec992
children 62ba471d9a4e
files artifacts/src/main/java/org/dive4elements/river/artifacts/D4EArtifact.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/D4EArtifact.java	Fri May 16 18:50:56 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/D4EArtifact.java	Mon May 19 12:47:50 2014 +0200
@@ -210,7 +210,9 @@
 
         handleInitModel(data, context, callMeta);
 
-        buildStaticFacets(data, facets, callMeta);
+        if (!facets.isEmpty()) {
+            buildStaticFacets(data, facets, callMeta);
+        }
 
         filterFacets = buildFilterFacets(data);
 

http://dive4elements.wald.intevation.org