changeset 6178:d0f01bc92fd0

Datacage: If there is an artifact you likely need the artifact database, too.
author Sascha L. Teichmann <teichmann@intevation.de>
date Tue, 04 Jun 2013 12:26:27 +0200
parents 573112007ec7
children 5297e173c272
files artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/Recommendations.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/Recommendations.java	Tue Jun 04 10:27:54 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/Recommendations.java	Tue Jun 04 12:26:27 2013 +0200
@@ -257,6 +257,7 @@
             new ArrayList<Builder.NamedConnection>(3);
 
         Connection userConnection = userId != null
+            || parameters.containsKey("ARTIFACT-ID")
             ? DBConfig
                 .getInstance()
                 .getDBConnection()

http://dive4elements.wald.intevation.org