Hello there,

I added a button to trigger a rule and had it display in the same view as Views Bulk Operations... This appeared to break VBO as no functions would execute anymore.

Anyone have any similar problems?
Cheers
Dan

Comments

tr33m4n’s picture

I am using the current Git version

BassistJimmyJam’s picture

I have looked into this a bit and discovered that it has to do with how button fields render when not on a form. Basically, when you are viewing an entity there is no form and therefore Drupal's ajax system is never loaded even though the button defines the #ajax key and callback. As a result, button fields in this mode render a dummy form wrapper that will allow it to use Drupal's ajax framework rather than using custom javascript for this. However, VBO wraps the views result in a form which then interferes with the button field's dummy form.

I have been working on a way to get around this. I would like to avoid using custom javascript to perform the callbacks as it would need to reproduce a lot of what Drupal already does in order to function properly. Further investigation is still needed.