Comment 1 for bug 1514799

Revision history for this message
Aaron Wells (u-aaronw) wrote :

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