Fix broken group-level conformance checks (LT-187)

This commit is contained in:
Erik Ziegler 2016-02-16 14:46:31 +01:00
parent 85b972e2e8
commit 8a0b9e6ba5

View File

@ -280,10 +280,10 @@ function validateGroups() {
// Collection.
var timepointTypes = ['baseline', 'followup'];
timepointTypes.forEach(function(timepoint) {
timepointTypes.forEach(function(timepointType) {
// Retrieve the current constraints which apply to the specific Timepoint type
// (e.g. baseline, followup) that this Measurement is being edited on.
var timepointConstraints = currentConstraints[timepoint.timepointType];
var timepointConstraints = currentConstraints[timepointType];
if (!timepointConstraints) {
return;
}