changeset 8717:68916dd6359b

Backout 8709:71ae18553377 Regression risk too high.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 27 Apr 2015 12:48:24 +0200
parents b5ac17a10d22
children e689be2a4dd1
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/CollectionView.java
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/CollectionView.java	Mon Apr 27 11:45:31 2015 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/CollectionView.java	Mon Apr 27 12:48:24 2015 +0200
@@ -721,17 +721,17 @@
         }
 
         for (final Recommendation recommendation: recommendations) {
+            if (collection.loadedRecommendation(recommendation)) {
+                continue;
+            }
+            newRecommendations.push(recommendation);
+
             // XXX: UGLY! If no reference artifact given use uuid of
             //      current artifact as reference.
             if (recommendation.getMasterArtifact() == null) {
                 recommendation.setMasterArtifact(masterArtifact.getUuid());
             }
 
-            if (collection.loadedRecommendation(recommendation)) {
-                GWT.log("Already loaded " +  recommendation.getDisplayName());
-                continue;
-            }
-            newRecommendations.push(recommendation);
         }
 
         loadArtifactService.loadMany(

http://dive4elements.wald.intevation.org