mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
FIX: Regression saving custom user title
This commit is contained in:
@ -36,7 +36,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
|||||||
saveTitle() {
|
saveTitle() {
|
||||||
const self = this;
|
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')},
|
data: {title: this.get('title')},
|
||||||
type: 'PUT'
|
type: 'PUT'
|
||||||
}).catch(function(e) {
|
}).catch(function(e) {
|
||||||
|
Reference in New Issue
Block a user