Bug fixing to make sure measurements are re-added to toolData

This commit is contained in:
Erik Ziegler committed 2016-01-11 18:17:02 +01:00
1 parent 798fe5a3dc
commit be5ff6f590
3 files changed
+17 -1

No files matched your search

@@ -93,6 +93,13 @@ var LesionManager = (function() {
// Insert this into the Measurements Collection
// Save the ID into the toolData (not sure if this works?)
measurement.id = Measurements.insert(measurement);
// Update the database entry so it can be readded next time the study is loaded
Measurements.update(measurement.id, {
$set: {
toolDataInsertedManually: false
}
});
} else {
lesionData.id = existingMeasurement._id;