The code within icon_filter_preprocess_field(), that implements hook_field_prepare_view(), fails when individual field item is not array.

Relation module's relation_select field such a type field that have stdClass objects items instead of arrays. So, it throws error when we use relation fields in entity.

Comments

junaidpv created an issue. See original summary.

junaidpv’s picture

Status: Active » Needs review
StatusFileSize
new1.02 KB

Here is simple patch that filter out non-array items from considering for format checking.

  • markcarver committed 42d5d3e on 7.x-1.x
    Issue #2796493 by junaidpv, mark carver: icon_filter module throws error...
markhalliwell’s picture

Status: Needs review » Fixed
StatusFileSize
new1.16 KB

Just made this simpler by skipping none array items. That way it makes that code more distinct and separates it from the other if statement.

Status: Fixed » Closed (fixed)

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