Skip to content

Commit

Permalink
#3038 Added validation for Data Point Name Exended length limit;
Browse files Browse the repository at this point in the history
  • Loading branch information
Limraj committed Oct 23, 2024
1 parent dde38d5 commit 27043c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/com/serotonin/mango/web/dwr/SystemSettingsDwr.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,13 @@ public DwrResponseI18n saveMiscSettings(int uiPerformance, String dataPointRtVal
workItemsReportingEnabled, response);
systemSettingsService.saveResourceGraphicsPathMisc(webResourceGraphicsPath, response);
systemSettingsService.saveResourceUploadsPathMisc(webResourceUploadsPath, response);
systemSettingsService.saveDataPointExtendedNameLengthInReportsLimitMisc(pointExtendedNameLengthInReportsLimit, response);

if(pointExtendedNameLengthInReportsLimit < 4) {
response.addContextualMessage("miscMessage", "validate.invalidVariable", LocalizableMessage.getMessage(Common.getBundle(), "systemsettings.reports.dataPointExtendedNameLengthLimit"));
} else {
systemSettingsService.saveDataPointExtendedNameLengthInReportsLimitMisc(pointExtendedNameLengthInReportsLimit, response);
}

systemSettingsService.saveEventAssignEnabledMisc(eventAssignEnabled);
return response;
}
Expand Down

0 comments on commit 27043c7

Please sign in to comment.