FEATURE: Show change name of user in staff logs (#6647)

FEATURE: Show change name of user in staff logs (#6647)

From d984323e2355fbdd3a905917d5f1b4bc6064ff73 Mon Sep 17 00:00:00 2001
From: Saurabh Patel <saurabh.finch@gmail.com>
Date: Thu, 22 Nov 2018 07:43:02 +0530
Subject: [PATCH] FEATURE: Show change name of user in staff logs (#6647)

https://meta.discourse.org/t/admins-changing-users-name-not-username-should-be-logged/99511

diff --git a/app/models/user_history.rb b/app/models/user_history.rb
index 4bd4887..ae1851c 100644
--- a/app/models/user_history.rb
+++ b/app/models/user_history.rb
@@ -144,7 +144,8 @@ class UserHistory < ActiveRecord::Base
       :delete_badge,
       :post_rejected,
       :merge_user,
-      :entity_export
+      :entity_export,
+      :change_name
     ]
   end
 
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index afd94a5..720076e 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -3569,6 +3569,7 @@ en:
             delete_badge: "delete badge"
             merge_user: "merge user"
             entity_export: "export entity"
+            change_name: "change name"
         screened_emails:
           title: "Screened Emails"
           description: "When someone tries to create a new account, the following email addresses will be checked and the registration will be blocked, or some other action performed."

GitHub