Skip to content
Snippets Groups Projects
Commit 75a20982 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-6945: fix getting the form id for label on details elements

parent f34d9cf4
No related branches found
No related tags found
1 merge request!132ISTWCMS-6945: fix getting the form id for label on details elements
......@@ -740,5 +740,8 @@ function uw_fdsu_theme_resp_preprocess_details(&$variables) {
if (isset($variables['element'][0]['#attributes']['data-drupal-selector'])) {
$variables['form_field_id'] = $variables['element'][0]['#attributes']['data-drupal-selector'];
}
else if (isset($variables['element']['#attributes']['data-drupal-selector'])) {
$variables['form_field_id'] = $variables['element']['#attributes']['data-drupal-selector'];
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment