From f77a0d8b6788980a9d5cef80424146ca591765cc Mon Sep 17 00:00:00 2001 From: Jon Borglund Date: Thu, 3 Oct 2019 22:13:35 +0200 Subject: [PATCH] fixed 'Settings Saved' notification when saving transcoding settings #1114 (#1269) Signed-off-by: Jon --- .../player/controller/TranscodingSettingsController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airsonic-main/src/main/java/org/airsonic/player/controller/TranscodingSettingsController.java b/airsonic-main/src/main/java/org/airsonic/player/controller/TranscodingSettingsController.java index 5009bdf3..d6f4662c 100644 --- a/airsonic-main/src/main/java/org/airsonic/player/controller/TranscodingSettingsController.java +++ b/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 { String error = handleParameters(request, redirectAttributes); if (error != null) { + redirectAttributes.addFlashAttribute("error", error); + } else { redirectAttributes.addFlashAttribute("settings_toast", true); } - redirectAttributes.addFlashAttribute("error", error); return "redirect:transcodingSettings.view"; }