From 6844edc5641436603d26c9a8b9f81f33f2c2c090 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 29 Jul 2014 16:02:30 -0400 Subject: [PATCH] FIX: User email was changing in the HTML when you invited a user --- app/assets/javascripts/discourse/controllers/invite.js.es6 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/discourse/controllers/invite.js.es6 b/app/assets/javascripts/discourse/controllers/invite.js.es6 index 0411f3b459e..0582d55fe4c 100644 --- a/app/assets/javascripts/discourse/controllers/invite.js.es6 +++ b/app/assets/javascripts/discourse/controllers/invite.js.es6 @@ -10,6 +10,10 @@ export default Discourse.ObjectController.extend(Discourse.ModalFunctionality, { needs: ['user-invited'], + // If this isn't defined, it will proxy to the user model on the preferences + // page which is wrong. + email: null, + isAdmin: function(){ return Discourse.User.currentProp("admin"); }.property(),