Problem/Motivation
Seeing these notices appearing many times on each page load:
Notice: Undefined index: role in template_preprocess_views_view_flexible_table() (line 260 of modules/contrib/flexible_views/flexible_views.theme.inc).
Notice: Trying to get property 'options' of non-object in template_preprocess_views_view_flexible_table() (line 260 of modules/contrib/flexible_views/flexible_views.theme.inc)
Notice: Trying to access array offset on value of type null in template_preprocess_views_view_flexible_table() (line 260 of modules/contrib/flexible_views/flexible_views.theme.inc).
Steps to reproduce
- Create a user listing using Flexible Table Style, Visible Column Selector Filter, and Manual selection exposed form style.
- Add a filter for User role, expose it, select "One of", select a sub-set of the Roles
Proposed resolution
Small code fix. Patch to follow
Comments
Comment #2
jamsilver commentedSee attached patch.
Comment #4
daveianoCommitted and fixed, thank you very much for your contribution!