Style in Layout Options Do Not Update on Themes Change #5344

Open
opened 2026-02-20 16:59:57 -05:00 by deekerman · 0 comments
Owner

Originally created by @smtaha01 on GitHub (Oct 17, 2025).

Issue

I’m outlining the behavior we observed regarding theme selection and the expected fix.

Steps to Reproduce

  1. Install a custom theme using Module Loader.
  2. Go to Admin > Themes, enable all available themes, and click Save.
  3. Open your User Profile → Edit → Themes Tab, and select any theme other than SuiteP.
  4. Go to the Layout Options section and check the Style dropdown.

Environment:
SuiteCRM 7.14.7

Current Behavior
Even after selecting a different theme, the Style dropdown continues to show SuiteP subthemes, instead of the subthemes belonging to the selected theme.

Expected Behavior
The Style dropdown should dynamically display subthemes based on the selected theme, not the default SuiteP ones.

Proposed Solution

We can resolve this in one of two ways:

1. Front-end Fix:
Trigger an API call when the user switches themes, so the correct subthemes are fetched and displayed dynamically.

2. Back-end Logic on Save:
When the user saves their profile, automatically set the default subtheme based on the selected theme’s configuration (themedef.php).

Possible Fix

1. Front-end Fix:
Trigger an API call when the user switches themes, so the correct subthemes are fetched and displayed dynamically.

2. Back-end Logic on Save:
When the user saves their profile, automatically set the default subtheme based on the selected theme’s configuration (themedef.php).

Steps to Reproduce the Issue

1. Install a custom theme using Module Loader.
2. Go to Admin > Themes, enable all available themes, and click Save.
3. Open your User Profile → Edit → Themes Tab, and select any theme other than SuiteP.
4. Go to the Layout Options section and check the Style dropdown.

Context

No response

Version

7.14.7

What browser are you currently using?

Chrome

Browser Version

No response

Environment Information

PHP 8.2

Operating System and Version

Ubuntu 20.04

Originally created by @smtaha01 on GitHub (Oct 17, 2025). ### Issue I’m outlining the behavior we observed regarding theme selection and the expected fix. ### Steps to Reproduce 1. Install a custom theme using Module Loader. 2. Go to Admin > Themes, enable all available themes, and click Save. 3. Open your User Profile → Edit → Themes Tab, and select any theme other than SuiteP. 4. Go to the Layout Options section and check the Style dropdown. **Environment:** SuiteCRM 7.14.7 **Current Behavior** Even after selecting a different theme, the Style dropdown continues to show SuiteP subthemes, instead of the subthemes belonging to the selected theme. **Expected Behavior** The Style dropdown should dynamically display subthemes based on the selected theme, not the default SuiteP ones. ### Proposed Solution We can resolve this in one of two ways: **1. Front-end Fix:** Trigger an API call when the user switches themes, so the correct subthemes are fetched and displayed dynamically. **2. Back-end Logic on Save:** When the user saves their profile, automatically set the default subtheme based on the selected theme’s configuration (themedef.php). ### Possible Fix **1. Front-end Fix:** Trigger an API call when the user switches themes, so the correct subthemes are fetched and displayed dynamically. **2. Back-end Logic on Save:** When the user saves their profile, automatically set the default subtheme based on the selected theme’s configuration (themedef.php). ### Steps to Reproduce the Issue ```bash 1. Install a custom theme using Module Loader. 2. Go to Admin > Themes, enable all available themes, and click Save. 3. Open your User Profile → Edit → Themes Tab, and select any theme other than SuiteP. 4. Go to the Layout Options section and check the Style dropdown. ``` ### Context _No response_ ### Version 7.14.7 ### What browser are you currently using? Chrome ### Browser Version _No response_ ### Environment Information PHP 8.2 ### Operating System and Version Ubuntu 20.04
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5344
No description provided.