You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We cannot guarantee that the "$variables['element'][XXXXX]" is available every time this hook runs. Just need to check if the variable we want to check against is available for comparison, if not then bail.
Also not sure if we are wanting this to change the labels on the admin pages? If so we may want to do the same to all of the admin textfield labels as it is kind of breaking some of the layouts a little.
Notice: Undefined index: id in bos_list_preprocess_form_element() (line 215 of modules/custom/bos_components/modules/bos_list/bos_list.module).
if(strtolower($variables['element']['#title']) === 'search' || $variables['element']['#attributes']['id'] === "edit-title") { $variables['label_display'] = 'after'; $variables['label']['#attributes']['class'] = 'sf-i-l'; }
Will need to add some conditional checks to avoid the errors, we don't see them on higher ENVs because we suppress the error messages.
The text was updated successfully, but these errors were encountered: