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
Notice: Undefined index: #type in oe_whitelabel_search_preprocess_facets_summary_item_list() (line 45 of themes/contrib/oe_whitelabel/modules/oe_whitelabel_search/oe_whitelabel_search.module).
In any case, checking if isset($item['value']['#type']) , before checking its actual value, would fix the problem with no harm, that's my simple proposed solution.
The text was updated successfully, but these errors were encountered:
dxvargas
changed the title
Having a notice: Undefined index: #type in oe_whitelabel_search_preprocess_facets_summary_item_list
Avoid notice: Undefined index: #type in oe_whitelabel_search_preprocess_facets_summary_item_list
Jul 6, 2022
I'm having this error:
The problem occurs here:
https://github.com/openeuropa/oe_whitelabel/blob/1.0.0-beta3/modules/oe_whitelabel_search/oe_whitelabel_search.module#L45
By the way, the $item[#theme] is "facets_summary_count".
In any case, checking if
isset($item['value']['#type'])
, before checking its actual value, would fix the problem with no harm, that's my simple proposed solution.The text was updated successfully, but these errors were encountered: