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

  1. Create a user listing using Flexible Table Style, Visible Column Selector Filter, and Manual selection exposed form style.
  2. 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

CommentFileSizeAuthor
#2 drupal-flexible_views--3405280-02.patch892 bytesjamsilver

Comments

jamsilver created an issue. See original summary.

jamsilver’s picture

Assigned: jamsilver » Unassigned
Status: Active » Needs review
StatusFileSize
new892 bytes

See attached patch.

daveiano’s picture

Status: Needs review » Fixed

Committed and fixed, thank you very much for your contribution!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.