From 306bd9009e1067dbcf3e14476af8ad01602a932e Mon Sep 17 00:00:00 2001 From: Bryce Willey Date: Mon, 5 Feb 2024 21:27:47 -0500 Subject: [PATCH] Comment pointing out consistency --- docassemble/ALToolbox/ThreePartsDate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docassemble/ALToolbox/ThreePartsDate.py b/docassemble/ALToolbox/ThreePartsDate.py index e5a2d69..c4a256d 100644 --- a/docassemble/ALToolbox/ThreePartsDate.py +++ b/docassemble/ALToolbox/ThreePartsDate.py @@ -528,7 +528,8 @@ return date_input >= min_date; }}, function alMinMessage (validity, field) {{ - /** Returns the string of the invalidation message. */ + /** Returns the string of the invalidation message, or blank string for + * safety and consistency with alMaxMessage. */ let min_attr = get_$original_date(field).attr('data-alMin') || ""; let min_date = new Date(min_attr.replace(/-/g, '/')); let locale_long_date = min_date.toLocaleDateString(undefined, {{ day: '2-digit', month: 'long', year: 'numeric' }});