From: Matthias Schmidt Date: Mon, 14 Aug 2017 15:18:16 +0000 (+0200) Subject: Fix commenting by guest if captchas are disabled X-Git-Tag: 3.1.0_Alpha_1~32 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e76eeaa064df22adf65d48d3eb8206521c3ef38a;p=GitHub%2FWoltLab%2FWCF.git Fix commenting by guest if captchas are disabled --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Comment/Add.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Comment/Add.js index 40cd9cdd84..15072683e6 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Comment/Add.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Comment/Add.js @@ -101,7 +101,9 @@ define(['Ajax', 'Core', 'EventHandler', 'Language', 'Dom/ChangeListener', 'Dom/U } }; - parameters = Core.extend(parameters, ControllerCaptcha.getData('commentAdd')); + if (ControllerCaptcha.has('commentAdd')) { + parameters = Core.extend(parameters, ControllerCaptcha.getData('commentAdd')); + } this._submit(undefined, parameters); },