Theme Boost Union is an enhanced child theme of Boost which is intended, on the one hand, to make Boost simply more configurable and, on the other hand, to provide helpful additional features for the daily Moodle operation of admins, teachers and students.
GNU General Public License v3.0
55
stars
49
forks
source link
First version of a flavour is used forever in theme designer mode. #625
When a flavour for a course category is modified with theme designer mode enabled, changes are not shown. Disabling theme designer mode shows the changes. When enabling theme designer mode again, changes are not shown. Purging all caches doesn't make a difference. The original flavour's settings are used "forever" in theme designer mode. This happens with Moodle 4.3 and 4.4 (others not tested).
To reproduce, try the following :
Enable theme designer mode
Create a flavour with some visible change (e.g. add a background image), and apply it to a course category
Verify that the flavour works by entering a course in the corresponding category.
Modify the flavour and remove the background image.
Enter the course. The background image is still displayed.
Disable theme designer mode.
Enter the course. The background image is not displayed.
Purge all caches.
Enable theme designer mode.
Enter the course. The background image is still displayed !
Verify in the flavour that there is no background image.
When theme designer mode is enabled, it looks like Boost Union uses the first version of a flavour forever. Purging caches doesn't make a difference.
When working with a theme, theme designer mode is very useful, as it makes it unnecessary to purge caches to see changes. Thus, the behaviour described above is very counterintuitive (it took me some time to identify the problem !). And the fact that changes to a flavour are never shown in designer mode is a real problem.
When a flavour for a course category is modified with theme designer mode enabled, changes are not shown. Disabling theme designer mode shows the changes. When enabling theme designer mode again, changes are not shown. Purging all caches doesn't make a difference. The original flavour's settings are used "forever" in theme designer mode. This happens with Moodle 4.3 and 4.4 (others not tested).
To reproduce, try the following :
When theme designer mode is enabled, it looks like Boost Union uses the first version of a flavour forever. Purging caches doesn't make a difference.
When working with a theme, theme designer mode is very useful, as it makes it unnecessary to purge caches to see changes. Thus, the behaviour described above is very counterintuitive (it took me some time to identify the problem !). And the fact that changes to a flavour are never shown in designer mode is a real problem.