From 98e86bb5cb26986e4d83ba45ac90019b4afce8c6 Mon Sep 17 00:00:00 2001 From: Phil Benson Date: Fri, 13 Dec 2024 10:55:15 +0000 Subject: [PATCH] Licence to start error not in error summary (#2094) * Licence to start error not in error summary https://eaflood.atlassian.net/browse/IWTF-3913 On the licence to start page, if no option is selected, the select an option error doesn't appear in the error summary box * Add licence-to-start error back into errorMap --- .../licence-details/licence-to-start/licence-to-start.njk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/gafl-webapp-service/src/pages/licence-details/licence-to-start/licence-to-start.njk b/packages/gafl-webapp-service/src/pages/licence-details/licence-to-start/licence-to-start.njk index aa176aced..3d7a2d423 100644 --- a/packages/gafl-webapp-service/src/pages/licence-details/licence-to-start/licence-to-start.njk +++ b/packages/gafl-webapp-service/src/pages/licence-details/licence-to-start/licence-to-start.njk @@ -38,6 +38,9 @@ 'date-range': { 'date.min': { ref: '#licence-start-date-day', text: mssgs.licence_start_error_within + data.advancedPurchaseMaxDays + mssgs.licence_start_days }, 'date.max': { ref: '#licence-start-date-day', text: mssgs.licence_start_error_within + data.advancedPurchaseMaxDays + mssgs.licence_start_days } + }, + 'licence-to-start': { + 'any.required': { ref: '#licence-to-start', text: mssgs.licence_start_error_choose_when } } } %}