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.
This commit is contained in:
YJDave
2018-02-04 11:00:18 +05:30
committed by Tim Abbott
parent d17bdf19dd
commit dc2b505acb

View File

@@ -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);
},
});
});