Affects Version/s: 7.0.X, 7.1.X, Master
Component/s: Portal Services > Localization
The order of the parameters called is not correct within the configuration values from the method:
On 6.2, this method would return the value passed in the parameter defaultValue if the portlet preferences were empty. In 7.0, 7.1, and master, the method now gives back the string "null", leading to incorrect text being displayed (see screenshot).
1) Navigate to Control Panel > Configuration > Server Administration
2) Click Script, and enter the following groovy script into the console:
Expected Behavior: Script returns the value "testValue"
Actual Behavior: Script returns "null." Order of parameters is not correct, as defaultValue is passed into the wrong parameter.