Unable to copy pages or collections into group
Bug #1990981 reported by
Stefan Bäcker
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Mahara | ||||||
22.04 |
Fix Released
|
High
|
Unassigned | |||
22.10 |
Fix Released
|
High
|
Unassigned | |||
23.04 |
Fix Released
|
High
|
Unassigned |
Bug Description
When trying to copy a page or collection into a group, the group information gets lost when moving away from the first page of candidates. Collections will be copied, but into the personal area, not into the desired group.
Debugging shows line 6504 in lib/view.php to be the culprit. Adding params only when there are none makes no sense. Removing the negation seems to solve the problem. Please find patch included.
First part of patch solves a type mismatch error related to copying pages with certain artefacts.
Second part solves this actual bug.
Mahara version 22.04.2
Ubuntu 20.04
MariaDB 10.3
Reproducible on current demo.mahara.org
Changed in mahara: | |
status: | Incomplete → New |
Changed in mahara: | |
status: | New → In Progress |
importance: | Undecided → High |
milestone: | none → 23.04.0 |
Changed in mahara: | |
milestone: | 22.10.1 → none |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
no longer affects: | mahara |
To post a comment you must log in.
Hello Stefan,
Thanks for the report and especially for the patch. Just so we can verify things in a detailed manner, could you provide a detailed breakdown of the issue. A step by step description would be best.
While I work on the codebase a lot the system is quite large and I'm unable to replicate what you are seeing from your current description and I need to do that before testing/adding the patch.
Cheers,
Gold