-
Bug
-
Resolution: Fixed
-
Neutral
-
4.4.4
-
None
I stumbled upon this while doing some extension for a project.
Class Dialog, lines 260-261:
String saveLabel = this.getConfigValue("saveLabel", msgs.get("buttons.save")); if (StringUtils.isNotEmpty(saveOnclick) && StringUtils.isNotEmpty("saveLabel")) {
Seems alright, but in the second isNotEmpty, the string tested is not saveLabel as a variable, but as the string itself. Obviously that condition will always be true, leading potential problems to the following code.
Simple patch is attached.
Acceptance criteria