From 9e453567c31e2fa29b5dc74254970cc9d8ac30aa Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 29 Jul 2016 17:15:10 +0200 Subject: [PATCH] Fixed error message for preview if message is empty --- wcfsetup/install/files/js/WCF.Message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index c225b6f09f..2cd7b3d8d8 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -437,7 +437,7 @@ WCF.Message.Preview = Class.extend({ $innerError = $('').appendTo(this._textarea.parent()); } - $innerError.html(data.returnValues.errorType); + $innerError.html((data.returnValues.errorType === 'empty' ? WCF.Language.get('wcf.global.form.error.empty') : data.returnValues.errorMessage)); return false; } -- 2.20.1