Skip to content

Commit

Permalink
ZSTD-4968 [Regression] Monitoring filter URLs are not saved
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartlomiej Laczkowski committed May 8, 2015
1 parent 64f4825 commit a007283
Showing 1 changed file with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,21 @@ public void saveValues() {
@Override
public boolean performOk() {
Server server = getServer();
if (server != null && isDeploymentEnabled()) {
updateAttribute(MonitorManager.FILTERS_ATTRIBUTE, getValue(input),
server);
updateAttribute(MonitorManager.HIDE_ATTRIBUTE,
String.valueOf(hideButton.getSelection()), server);
updateAttribute(MonitorManager.HIDE_TIME_ATTRIBUTE,
delayText.getText(), server);
for (int i = 0; i < severityButtons.length; i++) {
String severityName = getSeverityName(severityButtons[i]);
updateAttribute(MonitorManager.SEVERITY_ATTRIBUTE
+ severityName, String.valueOf(severities[i]), server);
if (server != null) {
IZendTarget target = ServerUtils.getTarget(server);
if (isDeploymentEnabled() || target != null) {
updateAttribute(MonitorManager.FILTERS_ATTRIBUTE,
getValue(input), server);
updateAttribute(MonitorManager.HIDE_ATTRIBUTE,
String.valueOf(hideButton.getSelection()), server);
updateAttribute(MonitorManager.HIDE_TIME_ATTRIBUTE,
delayText.getText(), server);
for (int i = 0; i < severityButtons.length; i++) {
String severityName = getSeverityName(severityButtons[i]);
updateAttribute(MonitorManager.SEVERITY_ATTRIBUTE
+ severityName, String.valueOf(severities[i]),
server);
}
}
}
return true;
Expand Down

0 comments on commit a007283

Please sign in to comment.