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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | icon_filter_module-2796493-4.patch | 1.16 KB | markhalliwell |
Comments
Comment #2
junaidpvHere is simple patch that filter out non-array items from considering for format checking.
Comment #4
markhalliwellJust made this simpler by skipping none array items. That way it makes that code more distinct and separates it from the other if statement.