FIX: Regression saving custom user title

This commit is contained in:
Robin Ward 2015-08-13 17:28:38 -04:00
parent 8ad2db7d2b
commit e3cf8b17ba
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
saveTitle() {
const self = this;
return Discourse.ajax("/users/" + this.get('username').toLowerCase(), {
return Discourse.ajax("/users/" + this.get('model.username').toLowerCase(), {
data: {title: this.get('title')},
type: 'PUT'
}).catch(function(e) {