Theme switches to default on creating an institution
Bug #1514799 reported by
Sergii Savchenko
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Robert Lyon | ||
15.10 |
Fix Released
|
High
|
Robert Lyon |
Bug Description
When you create a new institution (no matter which parameters to use) and hit Submit, page reloads and the site theme is switched to Default.
These notices are shown:
The theme "sitedefault" is missing. The theme has been set to the default theme.
Institution added successfully
The theme "" is missing. The theme has been set to the default theme.
Mahara 15.10.0 (freshly installed)
Linux (not sure about version, we use hosting, not VPS)
MySQL
Google Chrome (Version 44.0.2403.125)
no longer affects: | mahara/16.04 |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Sergei,
Thanks for the bug report! I was able to reproduce this same problem.
To replicate:
1. Clean install of Mahara
2. Go to "Configure Site -> "Site Options"
3. Under the "Site Settings" section, set "Theme" to something other than "Default". (It'll start off in "Raw", on a clean install.)
4. Go to "Institutions"
5. Click on "Add institution"
6. Create a new institution (it doesn't matter what settings you use)
7. Save the new institution.
Expected result: The new institution is created and nothing else on the site changes
Actual result: The new institution is created, and the site theme changes to "Default", and you see these messages in status boxes on the top of the page:
The theme "sitedefault" is missing. The theme has been set to the default theme.
Institution added successfully
The theme "" is missing. The theme has been set to the default theme.
When I say "the site theme changes to "Default"", I mean if you go back to "Administration -> Configure Site -> Site options -> Site settings -> Theme", the selection there will have changed to "Default"!
I suspect this was caused by a bug in the code we adding for migrating institutions that had themes that no longer exist, in the 15.10 upgrade. I do not know why it's changing the site theme setting, though.
Cheers,
Aaron