Affects Version/s: 6.2.5 CE GA6, 6.2.10 EE GA1
Liferay Portal site admin theme selector always chooses default colour scheme for theme by name, not by colour scheme ID, hence incorrect default theme is applied when theme is applied.
Show the default color scheme is not selected (as expected) when a theme (containing color schemes) is applied.
We will toggle between a sample theme and the Classic theme to exhibit the default color scheme selection issue.
1/ Install Liferay Portal 6.2 CE or EE + Apache Tomcat bundle
2/ Start portal
3/ Configure portal using setup wizard
4/ Sign in as test user
5/ Download and install any Liferay Portal 6.2 compatible theme
- Manzanita theme
- NOTE: We will refer to the new theme as NEW-SAMPLE-THEME)
- NOTE: Many sample themes available from Liferay Marketplace or the Liferay Portal community.
6/ Navigate to Dockbar > Admin > (Site Administration) > Pages
7/ Select NEW-SAMPLE-THEME theme
8/ Click Save button to apply NEW-SAMPLE-THEME theme to pages
9/ Select Classic theme
10/ Click Save button to apply Classic theme to pages
11/ Review outcomes
11.1/ Expected Outcome
Default color scheme is applied.
11.2 Actual Outcome
Dark color scheme is applied.
12/ Test case FAIL
The Default color scheme has name "Default" and scheme id "01".
The Dark color scheme has name "Dark" and scheme id "02".
Based on the test case and observed behaviour, the color schemes as sorted according to their name, not their scheme ID, resulting in the selection of color scheme "Dark", not "Default", as expected.
- Review theme color sorting and selection logic to apply default theme according to scheme ID, not scheme name.