-
Bug
-
Resolution: Fixed
-
Major
-
3.8.3, 3.9
-
MOODLE_38_STABLE, MOODLE_39_STABLE
-
MOODLE_38_STABLE, MOODLE_39_STABLE
-
MDL-69109-master-2 -
This took a long time to debug, I managed to reproduce on vanilla Moodle. This affects Workplace theme a lot, all our icons are lost after each web upgrade.
To reproduce on vanilla Moodle:
- Switch theme to Classic (Site administration>Appearance>Themes>Theme selector)
- Expand "Site pages" in the navigation block, you will see a big square next to each item
- Bump version of any plugin or install any plugin using web interface
- Expand "Site pages" in the navigation block, the big square has disappeared
- Purge caches
- Expand "Site pages" again - icons are back
The Classic theme only overrides one core font-awesome mapping - the navigation item. But Workplace theme overrides a lot of icons and the UI is completely broken after each upgrade
Lots of debugging led me to the page /admin/index.php?cache=0&confirmrelease=1&confirmplugincheck=1 that calls the WS request to core_output_load_fontawesome_icon_map. This request, for some reason, calls method get_icon_name_map() from the instance of the base class core\output\icon_system_fontawesome instead of theme_classic\output\icon_system_fontawesome. This results in the theme icons being lost.
Then the result is cached and the site remains in the broken state until the next cache purge.
- blocks
-
MDL-69215 load_fontawesome_icon_map web service does not respect current theme
- Closed
- has a non-specific relationship to
-
MDL-67992 In any child theme of Boost the config icon_system standard does not work
- Closed
-
MDL-58354 Font Awesome follow ups
- Closed
- is a regression caused by
-
MDL-40759 Use the Font Awesome icon font for all icons in Moodle
- Closed
- Testing discovered
-
MDL-69215 load_fontawesome_icon_map web service does not respect current theme
- Closed
- will be (partly) resolved by
-
MDL-67271 Add missing SVG files for FontAwesome images
- Closed
- will help resolve
-
MDL-68182 Themes cannot safely specify fontawesome icon replacements as cache is shared across themes
- Closed