From 7d1d1f986c0dfba28be5634a00a2ef7d2a4852ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien?= Date: Mon, 20 Jul 2020 20:48:17 +0200 Subject: [PATCH] Fix current user validation in settings page. --- assets/js/backend_settings_user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/backend_settings_user.js b/assets/js/backend_settings_user.js index f2d0e5d1..b66d7f09 100644 --- a/assets/js/backend_settings_user.js +++ b/assets/js/backend_settings_user.js @@ -96,7 +96,7 @@ try { // Validate required fields. var missingRequired = false; - $('#user .required').each(function (index, requiredField) { + $('#current-user .required').each(function (index, requiredField) { if (!$(requiredField).val()) { $(requiredField).closest('.form-group').addClass('has-error'); missingRequired = true; @@ -126,7 +126,7 @@ return true; } catch (error) { - Backend.displayNotification(exc.message); + Backend.displayNotification(error.message); return false; } };