Skip to content

Commit

Permalink
Fix NmlWriter TaskId meta tag (#3166)
Browse files Browse the repository at this point in the history
* Fix NmlWriter TaskId meta tag

* changelog
  • Loading branch information
fm3 authored Sep 6, 2018
1 parent d6e9deb commit 98ab2ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.md).
- Fixed the sorting of the dashboard task list and explorative annotation list. [#3153](https://github.com/scalableminds/webknossos/pull/3153)
- Fixed a bug where non-privileged users were wrongly allowed to pause/unpause projects. [#3097](https://github.com/scalableminds/webknossos/pull/3097)
- Fixed a regression bug which caused the initial data loading to fail sometimes. [#3149](https://github.com/scalableminds/webknossos/pull/3149)
- Fixed a bug where NML downloads of Task Annotations failed. [#3166](https://github.com/scalableminds/webknossos/pull/3166)

### Removed

Expand Down
6 changes: 4 additions & 2 deletions app/models/annotation/nml/NmlWriter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,10 @@ class NmlWriter @Inject() extends FoxImplicits {
}
}
taskOpt.foreach { task =>
writer.writeAttribute("name", "taskId")
writer.writeAttribute("content", task._id.toString)
Xml.withinElementSync("meta") {
writer.writeAttribute("name", "taskId")
writer.writeAttribute("content", task._id.toString)
}
}
}
}

0 comments on commit 98ab2ee

Please sign in to comment.