From dc2b505acb14be00f68316ecd800df9a2acbfa2c Mon Sep 17 00:00:00 2001 From: YJDave Date: Sun, 4 Feb 2018 11:00:18 +0530 Subject: [PATCH] org settings: Fix bug in error reporting on active users setting. In active users setting, an errors occurred on editing user profiles, are not reported correctly because there is missing argument in call of ui_report.error() function. Fix the issue by passing proper arguments in ui_report.error() function call. --- static/js/settings_users.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/settings_users.js b/static/js/settings_users.js index 1f3268f400..516d9f766b 100644 --- a/static/js/settings_users.js +++ b/static/js/settings_users.js @@ -436,8 +436,8 @@ exports.on_load_success = function (realm_people_data) { success: function () { ui_report.success(i18n.t('Updated successfully!'), admin_status); }, - error: function () { - ui_report.error(i18n.t('Failed'), admin_status); + error: function (xhr) { + ui_report.error(i18n.t('Failed'), xhr, admin_status); }, }); });