Skip to content

Commit 955b33b

Browse files
committed
Fix switching off custom content
1 parent ec93ecd commit 955b33b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

tcslackbuildnotifier-core/src/main/java/slacknotifications/teamcity/settings/SlackNotificationProjectSettings.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ public void updateSlackNotification(String ProjectId, String slackNotificationId
144144
whc.setBuildStates(buildState);
145145
whc.enableForSubProjects(buildSubProjects);
146146
whc.enableForAllBuildsInProject(buildTypeAll);
147+
whc.setHasCustomContent(content.isEnabled());
147148
whc.setContent(content);
148149
if (!buildTypeAll){
149150
whc.clearAllEnabledBuildsInProject();

tcslackbuildnotifier-web-ui/src/main/java/slacknotifications/teamcity/extension/SlackNotificationAjaxEditPageController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ protected ModelAndView doHandle(HttpServletRequest request, HttpServletResponse
210210
} else {
211211
projSettings.updateSlackNotification(myProject.getProjectId(),request.getParameter("slackNotificationId"),
212212
request.getParameter("channel"), enabled,
213-
states, buildTypeAll, buildTypeSubProjects, buildTypes, mentionChannelEnabled, mentionSlackUserEnabled,
214-
content);
213+
states, buildTypeAll, buildTypeSubProjects, buildTypes, mentionChannelEnabled,
214+
mentionSlackUserEnabled, content);
215215
if(projSettings.updateSuccessful()){
216216
myProject.persist();
217217
params.put("messages", "<errors />");

0 commit comments

Comments
 (0)