-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
2.0
-
None
-
MOODLE_20_STABLE
The user profile page within a course shows the same blocks as on the course main page. This is unhelpful and means you cannot add blocks which appear only on the user profile page. The interface text is also unclear.
To reproduce, log in as admin and:
1. Go to any course. Turn editing on.
2. Click on any user's name so that you get to the user profile page within that course.
3. Add an HTML block.
4. Edit the HTML block.
Setting options under 'Where this block appears' are unhelpful and inaccurate. The defaults are:
Page contexts: 'Display on course COURSECODE only'
other option is '...and any pages within it'
Bug 1: Even with the default selected, the block actually does appear on the profile page even though this is only a page within the course, and not on that course exactly. Probably this is because the page (correctly, imo) uses the course context. Could this be resolved with improved wording, e.g. 'Display on top-level pages in course COURSECODE' and then description in moodledocs of what is a top-level page?
Restrict to these page types: 'course-view-* (Any type of course main page)'
Bug 2: The provided/default option should be something like 'user-view (User profile page)' or ideally 'user-view-course' (User profile page within a course)
Bug 3 (most serious): Even though this page should not be course-view-*, the block still appears. Also it appears on the course main page! I guess the block code thinks this page is course-view when it totally shouldn't be, which is obviously also the cause of bug 2.
Also, possibly this is more a limitation than a bug, but:
Bug 4: As I have admin capability, the interface should allow me to choose 'Display on all courses' (ie system context) in the context option.