When using Views Bulk Operations to bulk modify a HS Node Reference field, I get an error. I choose my highest-level item, and the AJAX response causes my browser (Chrome) to popup an error: "Received an invalid response from the server."
When using Views Bulk Operations to bulk modify a HS Node Reference field, I get an error. I choose my highest-level item, and the AJAX response causes my browser (Chrome) to popup an error: "Received an invalid response from the server."
Comments
Comment #1
jrao commentedThe error is:
PHP Fatal error: views_bulk_operations_form() [function.views-bulk-operations-form]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "views_bulk_operations_plugin_style" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in modules\views_bulk_operations\views_bulk_operations.module on line 219
Probably related to how VBO handles the HS field, will try to look into this sometime next week.
Comment #2
bricef commented+1 i have the same issue.
Comment #3
bricef commentedI add thie piece of code in views_bulk_operations_init() :
And it works but that's not very clean i guess :)
I think we must open a bug in VBO.
Comment #4
gunzip commentedsame here, subscribing and filed a bug vs vbo here
#979766: Does not work with Hierarchical Select
Comment #5
gunzip commentedbricef code works. as a workaround you can put this code in your own module init function
without hacking vbo sources till a patch will come
Comment #6
janusman commentedThe above worked for me; however there is the additional problem that, for an HS widget that uses the dropbox (e.g. has multiple values), no values at all get sent from that widget.
For this I did some testing with a XXXX_nodeapi() function, when $op = 'presave', checking what the sent $node was; that field's value was empty when the dropbox was enabled, but did contain something when the field only allowed one value.