changeset 8716:b5ac17a10d22

(issue1754) Only create new Recommendations I belive that this was the original intent of this function otherwise why create a list of newRecommendations at all if we always recreate all Recommendations again. With the side effect that old recommendations had no master artifact the created artifacts of already existing artifacts did not have enough information to live and were not shown in the client so this problem was hidden.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 27 Apr 2015 11:45:31 +0200
parents b5cff23bf308
children 68916dd6359b
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/CollectionView.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/CollectionView.java	Fri Apr 24 18:03:46 2015 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/CollectionView.java	Mon Apr 27 11:45:31 2015 +0200
@@ -736,7 +736,7 @@
 
         loadArtifactService.loadMany(
             collection,
-            recommendations,
+            newRecommendations.toArray(new Recommendation[0]),
             null,
             locale,
             new AsyncCallback<Artifact[]>() {

http://dive4elements.wald.intevation.org