mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 18:52:14 +03:00
Added missing context from ValidationError
refs #10922 This is necessary to keep existing functionality in v0.1
This commit is contained in:
parent
df99e724e3
commit
cd45ab4f54
@ -345,7 +345,8 @@ validate = function validate(value, key, validations, tableName) {
|
||||
}
|
||||
|
||||
validationErrors.push(new common.errors.ValidationError({
|
||||
message: translation
|
||||
message: translation,
|
||||
context: `${tableName}.${key}`
|
||||
}));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user