Fix current user validation in settings page.

This commit is contained in:
Sébastien 2020-07-20 20:48:17 +02:00
parent 16c18f9b99
commit 7d1d1f986c

View file

@ -96,7 +96,7 @@
try { try {
// Validate required fields. // Validate required fields.
var missingRequired = false; var missingRequired = false;
$('#user .required').each(function (index, requiredField) { $('#current-user .required').each(function (index, requiredField) {
if (!$(requiredField).val()) { if (!$(requiredField).val()) {
$(requiredField).closest('.form-group').addClass('has-error'); $(requiredField).closest('.form-group').addClass('has-error');
missingRequired = true; missingRequired = true;
@ -126,7 +126,7 @@
return true; return true;
} catch (error) { } catch (error) {
Backend.displayNotification(exc.message); Backend.displayNotification(error.message);
return false; return false;
} }
}; };