Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid notice: Undefined index: #type in oe_whitelabel_search_preprocess_facets_summary_item_list #165

Closed
dxvargas opened this issue Jul 6, 2022 · 1 comment

Comments

@dxvargas
Copy link
Member

dxvargas commented Jul 6, 2022

I'm having this error:

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).

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.

@dxvargas 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
@brummbar
Copy link
Contributor

Fixed in beta4 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants