From c97e3252b21c409dbe575d43448ee4cf9a58ffba Mon Sep 17 00:00:00 2001 From: Martina Bustacchini <41484878+deodorhunter@users.noreply.github.com> Date: Thu, 19 Oct 2023 11:42:44 +0200 Subject: [PATCH] fix: timeline_tempi_scadenze validation (#370) --- RELEASE.md | 6 ++++++ src/helpers/FormValidation/DataGridFormValidationHelpers.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/RELEASE.md b/RELEASE.md index 3089b78c2..a8cbddd2b 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -41,6 +41,12 @@ - ... --> +## Versione x.x.x (xx/xx/xx) + +## Fix + +- Sistemata validazione del campo Timeline tempi e scadenze + ## Versione 8.7.9 (18/10/2023) ### Migliorie diff --git a/src/helpers/FormValidation/DataGridFormValidationHelpers.js b/src/helpers/FormValidation/DataGridFormValidationHelpers.js index 74055d071..89c3ae7e0 100644 --- a/src/helpers/FormValidation/DataGridFormValidationHelpers.js +++ b/src/helpers/FormValidation/DataGridFormValidationHelpers.js @@ -11,7 +11,7 @@ const dgfieldValidationMessages = defineMessages({ export const CUSTOM_DGFIELD_VALIDATION = { timeline_tempi_scadenze: { isValid: (value, itemObj, intlFunc) => { - const isValid = value.every((val, i) => val.title); + const isValid = value.every((val, i) => val.milestone); return !isValid ? intlFunc( dgfieldValidationMessages.timeline_tempi_scadenze_validation_error,