Page created in wrong institution theme

Bug #1632917 reported by Kristina Hoeppner on 2016-10-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Medium
Robert Lyon

Bug Description

Tested on Mahara 16.10dev

When you are a member of 2 or more institutions, you can switch the themes in your account settings page to the institution theme that you want to browse the site in.

When you create a page though, one of the institution themes is chosen and in my case it wasn't the one of the institution I had selected.

To replicate:

1. Set up institutions "School" and "University" and give each a different theme, i.e. not the site theme.
2. Set up a user who is a member in both institutions.
3. Log in and in the account settings, choose the school theme.
4. Create a page -> it takes on the school theme, which is correct.
5. Switch the theme in the account settings to "University".
6. The site displays in the university institution theme -> correct.
7. Create a page -> The school theme is selected -> This is not correct. It should display the university theme.
8. When you go to the page that you created under 4, it also still displays the school theme when it should show the university theme as that is your browsing theme.

The theme displayed to the user when browsing the site or creating a page should always be the one selected in account settings as that is the only way to know what the user's preference is.

This is unrelated to being able to choose a page theme. When that functionality is enabled, users should be able to "pin" a specific theme to a page, but only then. At all other times, the institution theme / theme chosen in their account settings page should be the one used for browsing their own portfolio.

There is no way to switch the theme to a "new" / other institution when page themes aren't turned on (which they aren't always).

Robert Lyon (robertl-9) on 2016-10-18
Changed in mahara:
status: Confirmed → In Progress
assignee: nobody → Robert Lyon (robertl-9)

The patch here fixes only that the correct institution theme is selected when creating the page. The remainder is a wishlist item and reported now at bug #1634675

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

commit 07b798e8ec6b1532f1a6a3d080e552a5e52130d1
Author: Robert Lyon <email address hidden>
Date: Tue Oct 18 13:42:46 2016 +1300

Bug 1632917: Respect usr_account_preference('theme') for page creation

Currently only sets new page to institution theme rather than what
theme you specified in account preferences.

behatnotneeded - visual difference

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

Robert Lyon (robertl-9) on 2016-10-19
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9) on 2017-04-27
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers