From 6ee20cfd9b5c9265729967bf18d739b5ace3c374 Mon Sep 17 00:00:00 2001 From: Kyoshiro Date: Fri, 21 Jul 2017 16:50:12 +0200 Subject: [PATCH] missing setMarkAsRequired Same kind of missing call as before, in addMultiValueInputTextField this time. Although, even after this patch, whenever submitting changes with an empty value on a required field (created via addMultiValueInputTextField), LAM seem to accept the changes and does not throw a warning. Where in the code is the part actually checking for required fields ? Cheers --- lam/lib/baseModule.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lam/lib/baseModule.inc b/lam/lib/baseModule.inc index 2979d099..ff5ff334 100644 --- a/lam/lib/baseModule.inc +++ b/lam/lib/baseModule.inc @@ -1305,6 +1305,7 @@ abstract class baseModule { if ($label !== null) { $labelTextOut = new htmlOutputText($label, true, $required); $labelTextOut->alignment = htmlElement::ALIGN_TOP; + $labelTextOut->setMarkAsRequired($required); $container->addElement($labelTextOut); } $subContainer = new htmlTable(); @@ -1925,4 +1926,4 @@ abstract class baseModule { } -?> \ No newline at end of file +?>