[Fix] Clone element in AbstractTransaction.findElement()

This commit is contained in:
Robert von Burg 2020-04-20 08:36:47 +02:00
parent e9700dcd22
commit b37c83eea1
1 changed files with 3 additions and 3 deletions

View File

@ -459,13 +459,13 @@ public abstract class AbstractTransaction implements StrolchTransaction {
String id = elements.get(2);
switch (objectClassType) {
case Tags.RESOURCE:
groupedParameterizedElement = getResourceBy(type, id);
groupedParameterizedElement = getResourceBy(type, id).getClone(true);
break;
case Tags.ORDER:
groupedParameterizedElement = getOrderBy(type, id);
groupedParameterizedElement = getOrderBy(type, id).getClone(true);
break;
case Tags.ACTIVITY:
groupedParameterizedElement = getActivityBy(type, id);
groupedParameterizedElement = getActivityBy(type, id).getClone(true);
break;
default:
throw new StrolchModelException(