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
This commit is contained in:
		
							parent
							
								
									204798567f
								
							
						
					
					
						commit
						6ee20cfd9b
					
				|  | @ -1305,6 +1305,7 @@ abstract class baseModule { | ||||||
| 			if ($label !== null) { | 			if ($label !== null) { | ||||||
| 				$labelTextOut = new htmlOutputText($label, true, $required); | 				$labelTextOut = new htmlOutputText($label, true, $required); | ||||||
| 				$labelTextOut->alignment = htmlElement::ALIGN_TOP; | 				$labelTextOut->alignment = htmlElement::ALIGN_TOP; | ||||||
|  | 				$labelTextOut->setMarkAsRequired($required); | ||||||
| 				$container->addElement($labelTextOut); | 				$container->addElement($labelTextOut); | ||||||
| 			} | 			} | ||||||
| 			$subContainer = new htmlTable(); | 			$subContainer = new htmlTable(); | ||||||
|  | @ -1925,4 +1926,4 @@ abstract class baseModule { | ||||||
| 
 | 
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| ?>
 | ?>
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue