[PATCH] Create mainvalue facets before setting up the artifact

Wald Commits scm-commit at wald.intevation.org
Tue Sep 30 10:58:07 CEST 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1412067478 -7200
# Node ID 8679875f2c09221fa48e7665ddee2b607a509095
# Parent  d6e71158222a01c21141e43a7d346bb7652949c1
Create mainvalue facets before setting up the artifact.

diff -r d6e71158222a -r 8679875f2c09 artifacts/src/main/java/org/dive4elements/river/artifacts/MainValuesArtifact.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/MainValuesArtifact.java	Mon Sep 29 15:49:04 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/MainValuesArtifact.java	Tue Sep 30 10:57:58 2014 +0200
@@ -118,7 +118,6 @@
         List<Facet> fs = new ArrayList<Facet>();
         addFacets(state.getID(), fs);
         spawnState();
-        super.setup(identifier, factory, context, callMeta, data, loadFacets);
         String restriction = getDatacageIDValue(data);
         log.debug("mainvalue restriction " + restriction);
         boolean restricted = restriction.endsWith("q") || restriction.endsWith("w");
@@ -136,6 +135,7 @@
                         callMeta,
                         "facet.discharge_curves.mainvalues.w")));
         }
+        super.setup(identifier, factory, context, callMeta, data, loadFacets);
     }
 
 


More information about the Dive4Elements-commits mailing list