Closed (fixed)
Project:
Views Alpha Pager
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2007 at 06:27 UTC
Updated:
12 Sep 2007 at 10:11 UTC
From DRUPAL-5 of views_pager_query.module
// NOTE: if the sort field isn't alpha, the results don't make sense
// NOTE: should we remove this check and just always look for fields first
if ($view->page_type == 'table' || $view->page_type == 'search') {
foreach ($view->field as $field) {
if (isset($field['sortable'])) {
$sort_field = $field['fullname'];
break;
}
}
}
isset($field['sortable']) returns true when sortable = '0'.
In many cases this is ok because something like 'title' is the first cab off the rank.
In my case a different field was first.
!empty($field['sortable']) works for me.
Bloody handy module, thanks for all the hard work.
Comments
Comment #1
douggreen commentedThanks! I applied the patch.
Comment #2
(not verified) commented