FIX: Regression saving custom user title
This commit is contained in:
parent
8ad2db7d2b
commit
e3cf8b17ba
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue