Skip to content
Snippets Groups Projects
Commit 0061d983 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

Merge branch 'f-select-any-version' into 'dev'

Server returns the entity version for all select queries

See merge request caosdb/caosdb-server!69
parents e6212526 ef68a9a1
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ public class EntityToElementStrategy implements ToElementStrategy {
if (setFieldStrategy.isToBeSet("id") && entity.hasId()) {
element.setAttribute("id", Integer.toString(entity.getId()));
}
if (setFieldStrategy.isToBeSet("version") && entity.hasVersion()) {
if (entity.hasVersion()) {
Element v = new VersionXMLSerializer().toElement(entity.getVersion());
element.addContent(v);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment