Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2008 at 18:06 UTC
Updated:
21 Jan 2009 at 23:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
danielb commentedprecisely the same error with 6.x-2.1
I am using exposed filters in one of my views.
Comment #2
cdale commentedDanielb put me onto this, the block with the exposed filter can not be in the sidebars, i.e. it has to be in top, bottom, header, etc... as the sidebars (At least for me) are not shown on the batch API progress pages.
I've been able to repeat this using devel modules generate content with more than 50 nodes generated, with an exposed filter in a block in the footer.
The problem seems to come from somewhere in the Batch API. The error also happens when javascript is disabled.
Comment #3
cdale commentedHaving thought about this a little more, I think there are a few solutions.
views_exposed_form_submitchecking for the presence of$form_state['view'].views_exposed_form, check if we are running a batch operation, and if so, set$form['#submit']to be an empty array. (This will keep the form displaying on batch pages, but will disable its operation. This would probably need to be done for #validate also).views_exposed_formcheck for batch operation, and if so, return an empty array. (Form will not show up on batch pages).Personally, I think #3 is the best approach, as it removes confusion over long batch processes, and the ability to accidentally submit a form that should probably not be submitted.
Thoughts?
Comment #4
cdale commentedHere is a patch which implements option 3 above.
The form does not get shown when batch operations are running, and works just fine when they are not.
Comment #5
merlinofchaos commentedWow, what a bizarre error. Good work tracking this down. Patch committed!