Theme switches to default on creating an institution

Bug #1514799 reported by Sergii Savchenko
6
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)

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

Changed in mahara:
importance: Undecided → High
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/5719

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "15.10_STABLE" branch: https://reviews.mahara.org/5790

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/5790
Committed: https://git.mahara.org/mahara/mahara/commit/eada86a2a6a943cc06fe5c12aefbbe98e9a948f0
Submitter: Aaron Wells (<email address hidden>)
Branch: 15.10_STABLE

commit eada86a2a6a943cc06fe5c12aefbbe98e9a948f0
Author: Robert Lyon <email address hidden>
Date: Mon Nov 16 12:15:35 2015 +1300

Bug 1514799: Ignoring theme check for new institutions

Stopping 'The theme "" is missing' message

behatnotneeded - only an info alert when not in production mode

Change-Id: Iacff81b2fd3d6ed264ca608ab00d3dcbf325231b
Signed-off-by: Robert Lyon <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/5719
Committed: https://git.mahara.org/mahara/mahara/commit/adcddb41b1a9e02c20873e74a24b138e08310014
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit adcddb41b1a9e02c20873e74a24b138e08310014
Author: Robert Lyon <email address hidden>
Date: Mon Nov 16 12:15:35 2015 +1300

Bug 1514799: Ignoring theme check for new institutions

Stopping 'The theme "" is missing' message

behatnotneeded - only an info alert when not in production mode

Change-Id: Iacff81b2fd3d6ed264ca608ab00d3dcbf325231b
Signed-off-by: Robert Lyon <email address hidden>

no longer affects: mahara/16.04
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.