Skip to content
Snippets Groups Projects
Commit 0f5ba1c3 authored by anttil's avatar anttil
Browse files

SSDM-4647: Fix legacy check

SVN: 37813
parent 8d8ccbb3
No related branches found
No related tags found
No related merge requests found
...@@ -58,8 +58,6 @@ public class SetDataSetLinkedDataExecutor implements ISetDataSetLinkedDataExecut ...@@ -58,8 +58,6 @@ public class SetDataSetLinkedDataExecutor implements ISetDataSetLinkedDataExecut
public void set(final IOperationContext context, final MapBatch<DataSetCreation, DataPE> batch) public void set(final IOperationContext context, final MapBatch<DataSetCreation, DataPE> batch)
{ {
final boolean legacy = isLegacy(batch);
new MapBatchProcessor<DataSetCreation, DataPE>(context, batch) new MapBatchProcessor<DataSetCreation, DataPE>(context, batch)
{ {
@Override @Override
...@@ -73,7 +71,7 @@ public class SetDataSetLinkedDataExecutor implements ISetDataSetLinkedDataExecut ...@@ -73,7 +71,7 @@ public class SetDataSetLinkedDataExecutor implements ISetDataSetLinkedDataExecut
{ {
throw new UserFailureException("Linked data cannot be null for a link data set."); throw new UserFailureException("Linked data cannot be null for a link data set.");
} }
if (legacy) if (isLegacy(batch))
{ {
setLegacy(context, linkedCreation, (LinkDataPE) entity); setLegacy(context, linkedCreation, (LinkDataPE) entity);
} else } else
...@@ -96,7 +94,7 @@ public class SetDataSetLinkedDataExecutor implements ISetDataSetLinkedDataExecut ...@@ -96,7 +94,7 @@ public class SetDataSetLinkedDataExecutor implements ISetDataSetLinkedDataExecut
} }
}; };
if (legacy) if (isLegacy(batch))
{ {
setDataSetExternalDmsExecutor.set(context, batch); setDataSetExternalDmsExecutor.set(context, batch);
} }
......
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