Forced theme is ignored when theme appearance is set for Tablet and Mobile
Field Tab
Scrum
Time Tracking
Field Tab
Scrum
Time Tracking
Description
It appears that a forced category theme is ignored when Theme Selector Mobile and Table is set to a different theme and course accessed using mobile or tablet.
Please see below replication.
Setup: Allow category themes allowcategorythemes = Ticked Site theme = Boost 1. Create a course category. 2. Configure the course category and set Force theme = classic 3. Create a course under that category. 4. Verify that it is using theme_classic. (Correct. Working as expected) 5. Go to Site admin / Appearance / Theme / Theme selector and set/ensure Default: Boost Mobile: Boost Tablet: Boost 6. Still using a computer, visit the course and verify it is using theme_classic. (Correct. Working as expected) 7. Using an iPad. Log in and visit the course. Use Edge/Chrome browser. RESULT: The course is using theme_boost. It appears that the category forced theme of theme_classic is ignored. Access the course using a computer and it will correctly show and use the category forced theme of theme_boost.
Testing Instructions
None
Automated test results
None
Pre-check results
None
Workaround
None
Activity
Paul Holden
22 May 2024 at 15:47
As per Amaia's comment above, this functionality is no longer present in generally supported versions so I'll close this one
Amaia Anabitarte
14 July 2023 at 08:29
Thanks Joshua for taking the time to report the issue and Kim for checking it.
In the meantime feel free to help us work on this issue. If you are able to provide a patch or links to your Git repository branch, please add a patch label so we will spot it. Otherwise, how about posting in a forum on moodle.org and encouraging people to vote, comment and/or come up with a patch.
Thanks for your help.
Amaia
Kim Jared Lucas
14 July 2023 at 07:56
Hi @Joshua Ebarvia,
Thanks for your report. After searching through the tracker, it seems that this issue has not yet been reported and I was also able to reproduce this in Moodle 4.1.4+. This will be put in the backlog soon.
It appears that a forced category theme is ignored when Theme Selector Mobile and Table is set to a different theme and course accessed using mobile or tablet.
Please see below replication.
Setup:
Allow category themes allowcategorythemes = Ticked
Site theme = Boost
1. Create a course category.
2. Configure the course category and set Force theme = classic
3. Create a course under that category.
4. Verify that it is using theme_classic. (Correct. Working as expected)
5. Go to Site admin / Appearance / Theme / Theme selector and set/ensure
Default: Boost
Mobile: Boost
Tablet: Boost
6. Still using a computer, visit the course and verify it is using theme_classic. (Correct. Working as expected)
7. Using an iPad. Log in and visit the course. Use Edge/Chrome browser.
RESULT: The course is using theme_boost. It appears that the category forced theme of theme_classic is ignored. Access the course using a computer and it will correctly show and use the category forced theme of theme_boost.