Custom header logo not shown while using the "Configurable Theme"

Bug #2016982 reported by Moritz Haisch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
In Progress
Medium
Unassigned

Bug Description

When the "Configurable Theme" has been activated for an institution of an installation, the custom header logo of that institution is replaced by the standard Mahara logo.

Tested on Mahara version 22.10.0 on Linux, PHP version 7.4, DB Postgres. Mahara installation with multiple institutions.

------

Precondition: Activate the "Configurable Theme" for an institution and save the changes.

Steps to reproduce:
1. Head to the institution's settings.
2. Upload a custom logo and save the changes.
3. Open any page of the application while being logged in to the institution which you have just set the custom logo up for.

Expected result: You will see your chosen custom header logo AND the theme colors of the "Configurable Theme" you have set up.

Actual result: You will see the Mahara site in your chosen "Configurable Theme" colors. When reloading any page you will shortly see your chosen custom logo flash up in the header bar and then be quickly replaced by the standard Mahara logo.

------

Possible fix: By experimenting around in the theme files for the custom theme I was able to find a temporary fix by commenting out two functions in the /htdocs/theme/custom/js/theme.js file (around line 300) responsible for adapting the Mahara logo to the custom theme header bar colors:

//displayCorrectSmallLogo();
//displayCorrectLogo();

I suspect these functions are at fault for replacing the chosen custom logo with the standard Mahara logo once the page has loaded.

Sadly, I will not be able to apply this same fix to our production system since we abstain from any theme changes. Therefore, it would be great to get in a fix for this issue with one of the upcoming releases! :)

Please feel free to contact me should you have any further questions!

Moritz Haisch (mhaisch)
description: updated
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Hi Moritz,

Thank you for your great bug report. I can see the same thing happening. I do see the custom logo flash by briefly, but it is then replaced by the standard logo. I suspect that there may need to be an if/else so that the custom logo (and custom mobile logo) is used when there is one and in all other cases the standard logo.

Please see https://mahara.org/interaction/forum/topic.php?id=9290 in regards to minor point updates and the 23.04 release.

Thank you
Kristina

Changed in mahara:
status: New → Confirmed
importance: Undecided → Medium
Robert Lyon (robertl-9)
Changed in mahara:
status: Confirmed → In Progress
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.