Great module by the way and I love the sorting functions. However, when I sort by year, it only applies to the page I'm on. If I sort page 1 by year, then turn to page 2, it's page 2 of the alphabetical listing and I have to resort the list again. This could get terribly frustrating if one were to have 100+ reviews to browse through. Is there any way for the list to remain sorted when you go to the next page?

Comments

sergio@www.s3006.com.br’s picture

Hello there...

To fix that, on moviereview.module, at line 321, there is the following line:

  $pager = theme('pager', NULL, 20, 0);

replace that line with the following code:

  $extra = array();
  if (array_key_exists('sort', $_GET))
  	$extra['sort'] = $_GET['sort'];
  if (array_key_exists('order', $_GET))
  	$extra['order'] = $_GET['order'];

  $pager = theme('pager', NULL, 20, 0, $extra);
Emiliano’s picture

Status: Active » Fixed

Commited to moviereview.module 4.6 on 2005/11/12.

Anonymous’s picture

Status: Fixed » Closed (fixed)