Closed (fixed)
Project:
Views Bulk Operations (VBO)
Version:
5.x-1.4
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2009 at 19:53 UTC
Updated:
19 Jun 2009 at 00:10 UTC
Simply commenting out functionality that sites in production may depend on and publishing a security release afterwards is not really kind.
Attached patch fixes the introduced bug.
I'd recommend to create a new 5.x-1.5 release after committing this patch. 5.x-1.4 horribly broke one of our sites.
| Comment | File | Size | Author |
|---|---|---|---|
| views_bulk_operations.single.patch | 1.02 KB | sun |
Comments
Comment #1
infojunkieNot so fast. I commented this functionality because it had problems of its own. I will not simply revert to it just like that.
Very sorry your site broke. If it's relying on a single screen, then we need to fix the bugs in the single operation mode.
Comment #2
sunI don't see where the problem is - with the attached patch, the handling of submitted form values is identical to views using multiple operations.
Well, the issue is obvious: Without this patch, you get a fieldset above the view, containing a select, and a button that was located below the view before. Additionally, you need to confirm the (single) operation, although the operation did not need to be confirmed before. No way to get the same rendered output and behavior like with this patch. Obviously, sites in production depend on this output and form handling.
Comment #3
infojunkieI know the difference between the behaviour of single and multiple operation modes, since I wrote them both. Your patch uncomments a piece of functionality that I had commented. I'll be happy to reactivate that functionality to avoid breaking your and others' sites.
But can you please explain why you set
$preserved_action_form_elements = array();instead of$preserved_action_form_elements = $form_values;? It breaks VBO for configurable actions that rely on$form_values.Comment #4
infojunkieI checked in a new version of the module. Please try it and let me know if it restores the broken site.