Skip to content
Snippets Groups Projects
Commit 56554f0c authored by felmer's avatar felmer
Browse files

SSDM-7430: fixing bug in UpdateAttachmentForEntityExecutor: Order of...

SSDM-7430: fixing bug in UpdateAttachmentForEntityExecutor: Order of attachments are not controlled because of HashSet
parent f49b19f9
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ import java.util.Collection; ...@@ -20,6 +20,7 @@ import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet; import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set; import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -73,7 +74,7 @@ public class UpdateAttachmentForEntityExecutor implements IUpdateAttachmentForEn ...@@ -73,7 +74,7 @@ public class UpdateAttachmentForEntityExecutor implements IUpdateAttachmentForEn
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
private void add(IOperationContext context, AttachmentHolderPE attachmentHolder, AttachmentListUpdateValue updates) private void add(IOperationContext context, AttachmentHolderPE attachmentHolder, AttachmentListUpdateValue updates)
{ {
Set<AttachmentCreation> added = new HashSet<AttachmentCreation>(); Set<AttachmentCreation> added = new LinkedHashSet<AttachmentCreation>();
for (ListUpdateAction<?> action : updates.getActions()) for (ListUpdateAction<?> action : updates.getActions())
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment