Skip to content

Commit

Permalink
PAYARA-1489-SNMP-Notifier-not-working-correctly (#1531)
Browse files Browse the repository at this point in the history
added fix for handling dynamic configuration in the UI
  • Loading branch information
mulderbaba authored and smillidge committed Apr 18, 2017
1 parent e070af6 commit 8e4e0cc
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@
method="GET" result="#{requestScope.resp}");
setPageSessionAttribute(key="valueMap", value="#{requestScope.resp.data.extraProperties.notifierConfiguration}");
mapPut(map="#{pageSession.valueMap}" key="target" value="#{pageSession.configName}");
setPageSessionAttribute(key="convertToFalseList", value={"enabled"});
setPageSessionAttribute(key="convertToFalseList", value={"enabled", "dynamic"});

if (#{pageSession.valueMap['enabled']}=true) {
setPageSessionAttribute(key="enabledSelected", value="true");
}
/>
setPageSessionAttribute(key="dynamic", value="true");
/>
</event>
<sun:form id="propertyForm">
#include "/common/shared/alertMsg_1.inc"
Expand All @@ -51,7 +52,8 @@
onClick="if (guiValidate('#{reqMsg}','#{reqInt}','#{reqPort}')) submitAndDisable(this, '$resource{i18n.button.Processing}'); return false;" >
<!command
mapPut(map="#{pageSession.valueMap}" key="enabled" value="#{pageSession.enabledSelected}");
prepareSuccessfulMsg();
mapPut(map="#{pageSession.valueMap}" key="dynamic" value="#{pageSession.dynamic}");
prepareSuccessfulMsg();
gf.updateEntity(endpoint="#{sessionScope.NOTIFICATION_CONFIG_URL}/notification-snmp-configure"
attrs="#{pageSession.valueMap}" convertToFalse="#{pageSession.convertToFalseList}");
/>
Expand Down

0 comments on commit 8e4e0cc

Please sign in to comment.