fixed 'Settings Saved' notification when saving transcoding settings #1114 (#1269)

Signed-off-by: Jon <jon@powha.net>
master
Jon Borglund 5 years ago committed by jvoisin
parent 2fa584f81d
commit f77a0d8b67
  1. 3
      airsonic-main/src/main/java/org/airsonic/player/controller/TranscodingSettingsController.java

@ -69,9 +69,10 @@ public class TranscodingSettingsController {
public String doPost(HttpServletRequest request, RedirectAttributes redirectAttributes) throws Exception { public String doPost(HttpServletRequest request, RedirectAttributes redirectAttributes) throws Exception {
String error = handleParameters(request, redirectAttributes); String error = handleParameters(request, redirectAttributes);
if (error != null) { if (error != null) {
redirectAttributes.addFlashAttribute("error", error);
} else {
redirectAttributes.addFlashAttribute("settings_toast", true); redirectAttributes.addFlashAttribute("settings_toast", true);
} }
redirectAttributes.addFlashAttribute("error", error);
return "redirect:transcodingSettings.view"; return "redirect:transcodingSettings.view";
} }

Loading…
Cancel
Save