From ae64c43e2fa5047321093c4660adb4e8c2f4895b Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 19 Jul 2017 20:33:28 +0200 Subject: [PATCH] Patch 19: fixed multi-value input field --- lam/lib/baseModule.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lam/lib/baseModule.inc b/lam/lib/baseModule.inc index f27470c4..2979d099 100644 --- a/lam/lib/baseModule.inc +++ b/lam/lib/baseModule.inc @@ -1408,12 +1408,14 @@ abstract class baseModule { if ($label !== null) { $labelTextOut = new htmlOutputText($label); $labelTextOut->alignment = htmlElement::ALIGN_TOP; + $labelTextOut->setMarkAsRequired($required); $container->addElement($labelTextOut); } $subContainer = new htmlTable(); $subContainer->alignment = htmlElement::ALIGN_TOP; for ($i = 0; $i < sizeof($values); $i++) { $input = new htmlSelect($attrName . '_' . $i, $options, array($values[$i]), $fieldSize); + $input->setHasDescriptiveElements($hasDescriptiveOptions); $subContainer->addElement($input); if (!empty($htmlIDs)) { $htmlIDs[] = $attrName . '_' . $i;