Mercurial > dive4elements > river
changeset 639:deb5e9840813
We will no longer put deactivated themes into the chart.
flys-artifacts/trunk@2019 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 27 May 2011 09:47:13 +0000 |
parents | 9c565eb46f06 |
children | 7e1a59fefa0d |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Fri May 27 08:46:26 2011 +0000 +++ b/flys-artifacts/ChangeLog Fri May 27 09:47:13 2011 +0000 @@ -1,3 +1,8 @@ +2011-05-27 Ingo Weinzierl <ingo@intevation.de> + + * src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java: + Deactivated themes are not put into the chart. + 2011-05-27 Ingo Weinzierl <ingo@intevation.de> * src/main/java/de/intevation/flys/collections/AttributeParser.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Fri May 27 08:46:26 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Fri May 27 09:47:13 2011 +0000 @@ -190,6 +190,10 @@ for (int i = 0; i < size; i++) { ManagedFacet theme = themeList.get(i); + if (theme.getActive() == 0) { + continue; + } + if (theme == null) { log.debug("Theme is empty - no output is generated."); continue;