Playing with Rules, ViewRulesLoop and VBO I got into situation when my screen became full of PHP Notices like"
Notice: Undefined property: view::$style_plugin in views_bulk_operations_handler_field_operations->label() (line 183 of .../sites/all/modules/views_bulk_operations/views/views_bulk_operations_handler_field_operations.inc).
which occurred even when just views Rules Components Overview page, when Rules performs dependencies() check throught whole component structure. So it seems that style_plugin is not initialized yet.
Thanks to @timplunkett who suggested another way for checking views style_plugin.
Patch is attached.
Comment | File | Size | Author |
---|---|---|---|
style_plugin_check.patch | 776 bytes | OnkelTem | |
Comments
Comment #1
OnkelTem CreditAttribution: OnkelTem commentedComment #2
bojanz CreditAttribution: bojanz commentedCommitted, thanks!
Comment #3
bojanz CreditAttribution: bojanz commentedDidn't review this properly.
Had to revert this because it doesn't account for style plugins that inherit from table.
For that we really need the complete object.
Added a !empty check that should be a better fix.