To reproduce this:

1) create a bulk operation view with sortable fields (such as title or node.created)
2) notice that when using the view, the sort functionality does not work
3) clone this view and change cloned view from bulk operations to table view.
4) sortable fields work again

Comments

harry slaughter’s picture

Status: Active » Closed (fixed)

Argh!! It turns out that the view itself had gotten 'into a state'. Views will often cache things unexpectedly and provide unexpected results. This seems to have been the case here.

Changing the view from a 'bulk operations view' do a different type of view, saving it, then changing it back, it 'unwedged' the view and it worked again.

Beware of altering any code or data that a view depends on. Very often, unexpected results occur and the best solution is to rebuild the view.

harry slaughter’s picture

Assigned: harry slaughter » Unassigned
Status: Closed (fixed) » Active

Re-opening this as I'm seeing the problem again and editing/re-saving the view does not fix it.

The problem is likely not in the views patch but in Views Bulk Operations. If you install "views_checkout.tgz" (see http://drupal.org/node/103171#comment-301899), you will see that you can create a 'node select' view where sortable fields will work. If you alter that view and make it a 'views bulk operations' view instead, you will likely see broken sortable fields.

harry slaughter’s picture

Assigned: Unassigned » harry slaughter
Status: Active » Fixed

fixed

Anonymous’s picture

Status: Fixed » Closed (fixed)
nedjo’s picture

Version: » 6.x-1.x-dev
Component: Code » Core

I had this issue with a views bulk operations view. Following the steps in #1 fixed it.

jrabeemer’s picture

ARGHHH I'm having this problem too with 1.9. Although, I'm unable to recreate #1's solution.

Update:
I was attempting to sort by date default. It would seem that you have to remove all *date* sorts from Sort Criteria. Then check off the default sort radio, then set asc/desc from within the Bulk Operations settings.