From cd45ab4f54abefeee8605df84cfc864fff1ad385 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Thu, 1 Aug 2019 14:44:37 +0800 Subject: [PATCH] Added missing context from ValidationError refs #10922 This is necessary to keep existing functionality in v0.1 --- core/server/data/validation/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/server/data/validation/index.js b/core/server/data/validation/index.js index 58136d3650..dd93ff061e 100644 --- a/core/server/data/validation/index.js +++ b/core/server/data/validation/index.js @@ -345,7 +345,8 @@ validate = function validate(value, key, validations, tableName) { } validationErrors.push(new common.errors.ValidationError({ - message: translation + message: translation, + context: `${tableName}.${key}` })); }