The problem is with these two lines in views_infinite_pager_form_alter():
$form['use_pager']['#options'] = array_merge($form['use_pager']['#options'], array('infinite' => t('Infinite pager')));
$form['use_pager']['#options'] = array_merge($form['use_pager']['#options'], array('infinite-auto-load' => t('Infinite Auto Load pager')));
This re-indexes the $form['use_pager']['#options'] array so that 'Full Pager' == 0 and 'No' == 1. NOT the desired values.
These two lines should be changed to:
$form['use_pager']['#options'] = $form['use_pager']['#options'] + array('infinite' => t('Infinite pager'));
$form['use_pager']['#options'] = $form['use_pager']['#options'] + array('infinite-auto-load' => t('Infinite Auto Load pager'));
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | fix_pager_bug.patch | 851 bytes | bleen |
| #2 | fix_pager_bug-1132302-1.patch | 1.01 KB | breathingrock |
| #1 | fix_pager_bug-1132302-1.patch | 1.1 KB | breathingrock |
| #1 | fix_pager_bug-1132302-2.patch | 1.08 KB | breathingrock |
Comments
Comment #1
breathingrock commentedPatches, assuming a 'sites/all/modules/contrib/views_infinite_pager' and 'sites/all/modules/views_infinite_pager' directory structure respectively.
Comment #2
breathingrock commentedPatch from module root, like you're supposed to ;)
Comment #3
bleen commenteda bit cleaner
Comment #4
sarjeet.singh commentedComment #5
sarjeet.singh commentedOk,issue found and fixed and committed to the D6 dev version (http://drupal.org/node/1162100).
thanks BreathingRock & bleen18
Comment #6
sarjeet.singh commentednew version released 6.x.1.2