MDL-65217 form: id for error area

This commit is contained in:
Marina Glancy
2019-04-29 14:23:27 +02:00
parent 086aa543b9
commit 521989ec56
28 changed files with 34 additions and 34 deletions
+1
View File
@@ -82,6 +82,7 @@ trait templatable_form_element {
$context['type'] = $this->getType();
$context['attributes'] = implode(' ', $otherattributes);
$context['emptylabel'] = ($this->getLabel() === '');
$context['iderror'] = preg_replace('/^id_/', 'id_error_', $context['id']);
// Elements with multiple values need array syntax.
if ($this->getAttribute('multiple')) {