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'));

Comments

breathingrock’s picture

StatusFileSize
new1.08 KB
new1.1 KB

Patches, assuming a 'sites/all/modules/contrib/views_infinite_pager' and 'sites/all/modules/views_infinite_pager' directory structure respectively.

breathingrock’s picture

StatusFileSize
new1.01 KB

Patch from module root, like you're supposed to ;)

bleen’s picture

StatusFileSize
new851 bytes

a bit cleaner

sarjeet.singh’s picture

Assigned: Unassigned » sarjeet.singh
sarjeet.singh’s picture

Status: Needs review » Reviewed & tested by the community

Ok,issue found and fixed and committed to the D6 dev version (http://drupal.org/node/1162100).

thanks BreathingRock & bleen18

sarjeet.singh’s picture

Status: Reviewed & tested by the community » Fixed

new version released 6.x.1.2

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.