mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05: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
1 changed files with 2 additions and 1 deletions
|
@ -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}`
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue