user settings: Fix garbage full name in change-full-name modal.

We should set full name evertime we open the modal. Otherwise
it will show garbage value which user has entered before but
did not save.
This commit is contained in:
Yashashvi Dave 2019-07-10 22:54:39 +05:30 committed by Tim Abbott
parent ecddc10272
commit e2e7d288a5
1 changed files with 1 additions and 0 deletions

View File

@ -298,6 +298,7 @@ exports.set_up = function () {
e.stopPropagation();
if (!page_params.realm_name_changes_disabled && !page_params.server_name_changes_disabled
|| page_params.is_admin) {
$('#change_full_name_modal').find("input[name='full_name']").val(page_params.full_name);
overlays.open_modal('change_full_name_modal');
}
});