From 17f99883c0b244252657beecbda110d0b173559d Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sun, 3 May 2020 11:26:04 +0200 Subject: [PATCH] Reset user settings form before validation. --- assets/js/backend_settings_user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/backend_settings_user.js b/assets/js/backend_settings_user.js index 6515ae8b..4757b9e5 100644 --- a/assets/js/backend_settings_user.js +++ b/assets/js/backend_settings_user.js @@ -89,7 +89,7 @@ * @return {Boolean} Returns the validation result. */ UserSettings.prototype.validate = function () { - $('#user .has-error').removeClass('has-error'); + $('#current-user .has-error').removeClass('has-error'); try { // Validate required fields.