Skip to content
Snippets Groups Projects
Commit d3d1c1cc authored by Clement Frainay's avatar Clement Frainay
Browse files

fix bug in CreateMetaNetwork: id merge conflict with added suffixes

parent 3d22d0e9
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,15 @@ public class CreateMetaNetwork extends AbstractMet4jApplication {
};
break;
case by_id:
getSharedIdFunction = BioEntity::getId;
getSharedIdFunction = entity -> {
String id = entity.getId();
for (String prefix : alias.values()) {
if (id.startsWith(prefix)) {
return id.substring(prefix.length());
}
}
return id;
};
break;
case by_name:
getSharedIdFunction = BioEntity::getName;
......
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