When duplicating a portfolio in a group, changing page or number of results per page looses goup in URL

Bug #2023778 reported by Clément Foucher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
New
Undecided
Unassigned

Bug Description

When a page or collection exists in a group, and we want to duplicate it to another group, if the number of pages or collections available for copy is larger than 10, there are multiple pages available.

If the page or collection is not displayed in the first page, then we can change page at the bottom, or change the number of available results in the page.

But either of these options result in loosing the ?group=XX in URL, thus the copy will now not target the group but rather our personal page.

E.g. : before clicking on page 2 at bottom, the URL is:
[...]/view/choosetemplate.php?searchcollection=1&group=2

But after clicking on page 2 at bottom, the URL is:
[...]/mahara/view/choosetemplate.php?viewoffset=10&setlimit=1&limit=10

Notice that there is no longer the "group=2", thus copy will now not target the group.
The only workaround I found is to not use the selectors at the bottom of the page, but rather manually add &limit=100 in the URL to display all the available pages and collections.

Mahara version: 22.10.0.
OS: Windows 10
Browser: Firefox

description: updated
description: updated
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Hi Clément. This issue was fixed in bug #1990981 where you can see the changed code referenced.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.