← Back to team overview

mahara-contributors team mailing list archive

[Bug 1053708] Re: A full list of Pages don't show up

 

I would just like to contribute my solution to this bug, is this an
acceptable answer?

In /js/paginator.js we have the function
rewritePaginatorSelectFormWithoutJSON which has the line:

     url += "&" + currentoffset.name + "=" + currentoffset.value;

I modified it to:

     url += "&" + currentoffset.name + "=" + 0;

My argument is that whenever the drop down list for the page size is
changed (say from 20 to 10 or vice versa), the offset should be reset to
0 since the value (or multiples) of the offset is dependent on the
current size of the limit.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contrib members
https://bugs.launchpad.net/bugs/1053708

Title:
  A full list of Pages don't show up

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  Version: master
  Platform: all
  Browser: all

  Assumption: You have 11 pages (views) and the number of items per page
  is 10.

  When you jumped to the second page, you could see the 11th page. Now
  you changed the number of items per page to 20, you only see the 11th
  view. You should see all 11 views.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1053708/+subscriptions


References