-
Bug
-
Resolution: Fixed
-
Major
-
2.1.3, 2.2.2, 2.3
-
PostgreSQL
-
MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
wip-
MDL-30478-master -
When wiki page group mode is set to either 'Visible groups' or 'Separate groups'. The groups selector displayed on wiki/view.php page (a) does not reflect the current group (b) changing the groups does not bring you to correct group page.
The investigation identified the following issues:
1. The current activity group in wiki view page is not updated to selected
group in most cases, making dropdown menu displaying the wrong group. Having
said that, the displayed page may also belong to the the wrong group, I have seen a
situation that after selecting group, both dropdown menu and page do not match
neither each other nor the requested page.
2. I guess the wiki title is sometimes malformed for groups (spaces in the original title are replaced with +), which makes it redirecting to the
'first page', and even causes 'redirect loop' or prompting for group page creation (while it has been created already).
3. The title used as hidden parameter in group dropdown always reflect the title of the previously selected page, so the attempt to switch group ends up with non-existing page and redirect user to 'first page' (which might even be not the main page either).
Replication steps:
(all steps are done as admin)
- Create collaborative wiki activity with 'Visible groups' and leave page name default ('First page name')
- You will be prompted to create the first page, write 'first page' in the content.
- Create two course groups, Group 1 and Group 2.
- Go to the wiki activity and select Group 1
- You will be prompted to create a new page 'First+page+name', write 'Group 1' in the page content.
- (observation 1) You are now on the main wiki view page, the page content belongs to group 1, but selector reads 'All participants'.
- Select 'Group 1' in dropdown selector.
- (observation 2) The content now switched to the 'first page' and the selector reads 'All participants' - 'Group 1' selection failed.
- Select 'Group 1' in dropdown selector again. Now display seems correct - Group 1 page is displayed and selector reads 'Group 1'
- Select 'All participants' in dropdown selector.
- (observation 3) Chrome browser reports 'This web page has a redirect loop'
- Get back to moodle from error page (just open the url and the course page), click on wiki activity we created.
- (observation 4) Wiki prompts you to create the new page 'First page name'
- Proceed creating it, the surprising thing is that it will belong to 'Group 1' as well under different name, so name it 'Group 1 new'.
- Now try switching between 'Group 1' and 'All participants' several time, you will be able to spot all three pages one after other, but in most cases the displayed page and selector will not be reflecting the one you have chosen.
If you like to observe even more weirdness, you may introduce a second page by selecting 'Group 2' in the menu, and play switching between them.
- blocks
-
MDL-31708 wiki 2.0 non-group member can see edit option in navigation block.
- Closed
- caused a regression
-
MDL-33607 Add new wiki page - error writing to database
- Closed
-
MDL-35653 Wiki module does not work if you activate the force format option
- Closed
- Discovered while testing
-
MDL-32647 Wiki map tab doesn't show group selector
- Closed
- has a non-specific relationship to
-
MDL-27037 Wiki 2.0 does not respect 'visible groups' functionality.
- Closed
- has been marked as being related by
-
MDL-29909 fatal error on wiki with seperate groups and individual mode when logged in as student
- Closed
-
MDL-31188 Wiki groups selection does not work
- Closed