Added missing context from ValidationError

refs #10922

This is necessary to keep existing functionality in v0.1
This commit is contained in:
Fabien O'Carroll 2019-08-01 14:44:37 +08:00
parent df99e724e3
commit cd45ab4f54

View File

@ -345,7 +345,8 @@ validate = function validate(value, key, validations, tableName) {
} }
validationErrors.push(new common.errors.ValidationError({ validationErrors.push(new common.errors.ValidationError({
message: translation message: translation,
context: `${tableName}.${key}`
})); }));
} }