Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/CollectionView.java @ 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 | 71ae18553377 |
children | 68916dd6359b |
comparison
equal
deleted
inserted
replaced
8715:b5cff23bf308 | 8716:b5ac17a10d22 |
---|---|
734 newRecommendations.push(recommendation); | 734 newRecommendations.push(recommendation); |
735 } | 735 } |
736 | 736 |
737 loadArtifactService.loadMany( | 737 loadArtifactService.loadMany( |
738 collection, | 738 collection, |
739 recommendations, | 739 newRecommendations.toArray(new Recommendation[0]), |
740 null, | 740 null, |
741 locale, | 741 locale, |
742 new AsyncCallback<Artifact[]>() { | 742 new AsyncCallback<Artifact[]>() { |
743 @Override | 743 @Override |
744 public void onFailure(Throwable caught) { | 744 public void onFailure(Throwable caught) { |