Skip to content

Commit

Permalink
NEPT-2489: Fix issues/198.
Browse files Browse the repository at this point in the history
  • Loading branch information
drishu committed Jan 26, 2020
1 parent 2b3b4d3 commit e627e64
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions templates/form_element/form_element.component.inc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ function ec_europa_preprocess_form_element__checkbox(array &$variables, $hook) {
* Implements hook_preprocess_hook().
*/
function ec_europa_preprocess_form_element__textarea(array &$variables, $hook) {
$variables['label']['#attributes'] = array(
'id' => array($variables['element']['#id'] . '_label'),
);
if (isset($variables['label']['#attributes'])) {
$variables['label']['#attributes'] = array(
'id' => array($variables['element']['#id'] . '_label'),
);
}
}

0 comments on commit e627e64

Please sign in to comment.