← Back to team overview

mahara-contributors team mailing list archive

[Bug 1384529] Re: Comments pagination is off by one

 

To test:

1. Create a page.

2. Add 12 comments to the page.

3. When viewing the page add an extra parameter to the page URL: 
             &showcomment=XXX
   where XXX is an ID of 11th comment.

4. Make sure that comments pagination shows the second page where this
11th comment actually is.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1384529

Title:
  Comments pagination is off by one

Status in Mahara ePortfolio:
  In Progress

Bug description:
  When you view a page, if you pass showcomment=$commentid, it should
  set pagination to display the page of comments containing $commentid.

  There seems to be an off by one error as at the boundaries it doesn't
  quite work.

  If you try to show the first comment on a new page, it actually shows
  the previous page.

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


References